Product Rate Update - When the Product is Modified

Discussion in 'Requests' started by sk.mahendran, Aug 3, 2013.

    
  1. sk.mahendran

    sk.mahendran New Member


    Friends,
    While selecting the Product the rate from the price list is selected, immediately when we change the product name the rate selected for the earlier product is taken into calculation. The rate is not updated. I am enclosing the tdl along with this. Kindly update/make corrections in the same.
    Eg.: Product A is selected its rate is Rs.100/-, immediately the product A is modified with product B it's rate in the price list is Rs.200/- but in the invoice rate column shows Rs.100 only( rate of product A). We need the auto update of the rate or to check the rate for the selected product from the price list.
    -------------------- my tdl coding --------------------------------------------
    [#Field: VCH Rate]
    Setval : if @@HasInvSubAlloc then $BatchRate else +
    if $BilledQty = 0 then 0 else +
    if $$IsValidPriceLevel:$PriceLevel then $$ForexValue:mad:@StdVchRate else +
    if $StockItemName != #VCHPrevItem AND NOT $$IsStartupValue then $$ForexValue:mad:@StdVchRate else +
    if $$IsFieldEdited OR $$InAlterMode then $$Value else +
    if $$IsEmpty:$$Value then $$ForexValue:mad:@StdVchRate else $$Value
    ----------------------------------------------------------- end -----------------------------------------
     


  2. mutharasan

    mutharasan Member


    try this "Set Always : yes"
     


Share This Page