How to Validate Rate Unit Field

Discussion in 'Tally Developer' started by surendra19, Oct 1, 2020.

    
  1. surendra19

    surendra19 Member


    Dear Experts,

    I want to validate the Rate unit field to check whether its hold Alternate Unit of the item instead of Base unit.
    I have used the following code but it is not working. Kindly suggest me how to validate Rate Unit Field always hold Alternate unit of the item


    [#Field: VCHBATCH RateUnits]

    Use : Rate Units Field
    Width : @@VCHRateUnitsWidth
    Style : Small Bold
    Align : Right
    Storage : Batch Rate
    Skip On : $$Line > 1 OR $$IsEmpty:$BilledQty OR (NOT @@DoEditAll AND $$IsValidPriceLevel:$PriceLevel AND @@StdVchFldSkipCond)
    SubForm : VCHBATCHFOREX Rate : @@HasMultiCurrBatchRate
    Inactive : @@NoBaseUnits OR @@BatchAllocBreak OR @@JobOrderBreak

    Validate :$$Value <> $AdditionalUnits:StockItem:$StockItemName

    Thanks in advance
     


Share This Page