Method of calculation Alternate Qnt Instead Of Main Qnt

Discussion in 'Tally Developer' started by HAROON2015, Oct 11, 2019.

    
  1. HAROON2015

    HAROON2015 Member


    hi,
    i just want to change the "based on Quantity" under Type of Calculation with class of payment voucher to alternate qnt
    Code:
    [#Field: CI Value]
    QtyCalc : $$Total:VCHBilledQty * $$AsRate:$ClassRate
    i meant multiple the value basis to alternate qnt instead of normal quantity
    [​IMG]
    [​IMG]
    hope some one will help
     

    Attached Files:

    Last edited: Oct 12, 2019


  2. balajimg

    balajimg Active Member


    [system : formula]
    first alt qty : $$CollectionField:($$String:$BilledQty:"Secondary"):1:InventoryEntries

    in ledger entries field level call
    $$Number:mad:@firstaltqty * $$Number:the rate % field
     


  3. HAROON2015

    HAROON2015 Member


    this is the default code
    Code:
    [#Field: CI Value]
    QtyCalc : $$Total:VCHBilledQty * $$AsRate:$ClassRate
    then now should i use like below
    Code:
    [#Field: CI Value]
    QtyCalc : $$Number:@firstaltqty * $$Number:the rate % field
    
    [system : formula]
    first alt qty : $$CollectionField:($$String:$BilledQty:"Secondary"):1:InventoryEntrie
     


  4. HAROON2015

    HAROON2015 Member


    i tried but not working :(
     


Share This Page