Set Against Reference automatic

Discussion in 'Free Source Codes' started by A Sam, Sep 23, 2020.

    
  1. A Sam

    A Sam Member


    Hi,

    Is there any TDL or setting which will allow setting against reference automaticllay in tally?

    So that a receipt from customer will be allocated against older invoice(s) as well as payments against earlier due purchase invoice

    thanks
     



  2. Use These Suggestion To make this Tdl

    (A) 1.Create the Ledger collection with the filter as Ledger having the Bill wise enable
    Use the default collection “Ledger Outstandings”

    (B) 1. Create the function and make walk collection with the above said collection
    2. Create the collection as Ledger vouchers using the parameter from the above said collection (1) and make the walk collection . Like below

    For Example :

    [Collection: Vouchers of Ledger]

    Type : Vouchers : Ledger

    Child Of : ##pLedgerName


    (C) 1. Inside the walk collection (3) make as New Object : Voucher : MasterId
    2. Then need to use Walk Collection : Ledger Entries
    3. Compare the Ledger Name in the Ledger Entries is equal to the selected Ledger in the collection (1).
    If : $LedgerName = ##pLedgerName

    (D) 1. If the above condition is satisfied then if $$NumItems:BillAllocations > 0 then need to delete the existing billallocations and need to make the “Insert Collection Object : Bill Allocations”


    (E) 1. Then make the voucher Type condition as $$IsPayment:##VoucherTypeName then update the bill allocations using the Set Value . The above said approach can do through User Defined Function.
     


Share This Page