Last Payment of the Party

Discussion in 'Tally Developer' started by Manthan Gandhi, Nov 24, 2014.

    

  1. Dear Experts,

    Hello every one, i want to fetch the last paid amount by the party please can anyone help me out.
    please kindly reply ASAP.

    thanks in advance.
     


  2. admin

    admin Administrator Staff Member


    Code:
    $$CollectionField:$Amount:1:MyColl
    
    [Collection: My Coll]
    Type: Vouchers: Ledger
    Child of : $PartyLedgerName
    Filter: IsRcptVoucher
    Fetch: VoucherTypeName,Date,Amount
    Sort: @@InCreasing: -$Date
    
    [System: Formula]
    IsRcptVoucher: $$IsReceipt:$VoucherTypeName
     
    Harry459 and HVPatel like this.


  3. Maulik Patel

    Maulik Patel Active Member


    Dear Manthan Gandhi,

    If you are showing it in report and you have large data size then use $$CollecitonFieldByKey instead of $$CollecitonField because $$CollectionFieldByKey function is giving faster result then $$CollectionField. You can use the same collection suggested by admin just add a search key to that collection.
     
    Last edited: Nov 29, 2014
    khushbu and admin like this.



  4. Thanx alot admin & Maulik Patel
     


  5. admin

    admin Administrator Staff Member


    He is new to tdl .. that is why i have not suggested $$CollecitonFieldByKey. I like you. :)
     


  6. Maulik Patel

    Maulik Patel Active Member


    :)

    you are THE best, I just try to provide more knowledge as in my starting period I was also facing same issue with large data and was not able to resolve it.
     
    khushbu and Manthan Gandhi like this.


  7. priya

    priya Member


    Well reasoning and properly guided, hall mark of a matured learned counsel. Thank you
     
    Manthan Gandhi likes this.


  8. bollindia

    bollindia Member


    i want to show this on voucher creation screen how can i
     



  9. write the code in the voucher form
     


  10. bollindia

    bollindia Member


    brother can you give me code for this
     




  11. bollindia

    bollindia Member


    on sales voucher
     



  12. [Collection: My Coll]

    Type : Vouchers: Ledger
    Child of : $PartyLedgerName
    Filter : IsRcptVoucher
    Fetch : VoucherTypeName,Date,Amount
    Sort : @@InCreasing: -$Date

    [System: Formula]

    IsRcptVoucher: $$IsReceipt:$VoucherTypeName

    [#Part: EI BaseInfo]

    Option : Last Pymt Det : $$Owner:mad:@isSales

    [!Part : Last Pymt Det]

    Add : Line : After : EI Consignee : l
    Background : red

    [Line : l]
    Field : Medium Prompt , last Amt
    Local : Field : Medium Prompt : Set as : "Last Payment"

    [Field : Last Amt]

    Use : Amount Field
    Set as : $$CollectionField:$Amount:1:MyColl
    Skip : Yes

    ;; end of file



    try this...
     


  13. bollindia

    bollindia Member


    pls see in jpg file whats i want sir
     

    Attached Files:



  14. bollindia

    bollindia Member


    i want to feth last vocher entry while vocher entry
     


Share This Page