Use Secondary unit quantity in batchallocation entry

Discussion in 'Tally Developer' started by suyash, Jul 21, 2020.

    
  1. suyash

    suyash New Member


    Hii All
    i try to enter secondary unit first but something wrong in code please correct me


    [#Line: VCHBATCH ColumnOne]
    Add : Option : SEbatchTopt : (@@IsSales or @@IsPurchase) and @@IsCMPBrokerModuleActivate

    [!Line: SEbatchTopt]
    Add : Right Field : Before : VCH QtyTitle : VchaltQTYT, VchaltgrosswtT, VchaltdedT

    [Field: VchaltQTYT]
    Info : "Alternate Qty"
    Width : 10% Page
    Style : Normal Bold

    [Field: VchaltgrosswtT]
    Info : "Gross Wt"
    Width : 10% Page
    Style : Normal Bold

    [Field: VchaltdedT]
    Info : "Ded Wt"
    Width : 10% Page
    Style : Normal Bold


    [#Line: STKVCH Batch2]
    Add : Option : SEBtachopt : (@@IsSales or @@IsPurchase) and @@IsCMPBrokerModuleActivate;@@IsSales or @@IsSalesOrder ;or @@IsPurcOrder or @@IsPurchase

    [!Line: SEBtachopt]
    Add : Right Field : Before : VCHBATCH ActualQty : VchaltQTY, Vchaltgrosswt, Vchaltded

    [Field: VchaltQTY]
    Use : Qty Secondary Field
    Storage : VchaltQTY
    ;Set as : $$String:($BilledQty):Symbol,ShortForm,Secondary
    Set Always : Yes
    Width : 10% Page
    Align : Center


    [Field: Vchaltgrosswt]
    Use : Number Field
    Storage : Vchaltgrosswt
    Set Always : Yes
    Width : 10% Page
    Align : Center

    [Field: Vchaltded]
    Use : Number Field
    Storage : Vchaltded
    Set Always : Yes
    Width : 10% Page
    Align : Center

    ;Set as: If #REGUNIT Contains "Not Applicable" Then $$Number:0 Else $$String:$REGBILLQTY2:Secondary
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    First ...remove all ......@@IsCMPBrokerModuleActivate ......

    Second... Where is your UDF definitions.... if you are using that as a storage, you need to define it in [System : UDF]
     


Share This Page