how to get last second purchase cost...

Discussion in 'Tally Developer' started by rajendra mithari, Jun 20, 2014.

    

  1. dear experts,
    i have added one line in stock master. for last purchase cost.
    can i fetch last second , last third purchase cost?

    pl help.
     


  2. Maulik Patel

    Maulik Patel Active Member


    Dear Sir,

    You can get it by $$CollectionField funciton. For example if you want to get last ledger from ledger master then you can wirte

    Code:
    ;; For last
    $$CollectionField:$Name:(-1):Ledger
     
    ;; For second last
    $$CollectionField:$Name:(-2):Ledger
     
    ;; For third last
    $$CollectionField:$Name:(-3):Ledger
     
    JObimon Arackal JOhn and khushbu like this.


  3. khushbu

    khushbu New Member


    Good thing to learn for new commers. Thank you very much sir.
     


Share This Page