Last batch Name retrieve

Discussion in 'Tally Developer' started by mutharasan, Mar 12, 2013.

    
  1. mutharasan

    mutharasan Member


    Dear Admin Sir,

    i want to retrieve the last purchase batch Name for the Particular stockitemName, many time i tried, but i could not retrieve please assist me. it will be great help to me.
    Thanking You,
     


  2. Maulik Patel

    Maulik Patel Active Member


    Hi Dear,
    This may work
    Set As : $$FilterValue :<ValueExpression> : <CollectionName> :<PositionSpecifier> : <FilterExpression>

    In Value Expression set batch name method name, In collection name set collection for vouchers, In Possition set "Last", In Filter add a filter for specified voucher type
     
    mutharasan likes this.


  3. mutharasan

    mutharasan Member


    Dear Maulik Patel,

    Thank you very much for your kind reply,

    the code is working fine.

    But one more request, now i need to retrieve the value of before the batch of the last batch.

    for example:
    existing batches are for one Item Called "MyItem"

    Batch A
    Batch B
    Batch C
    Batch D

    i need to retrieve the batch Name of BatchC

    I am expecting your valuable reply as earlier as possible.
     


  4. mutharasan

    mutharasan Member


    Dear Maulik Patel,

    thanks for your nice & immediate reply, you gave me an fine idea, but i could not understand it. i have upload the coding file, you can see the result in purchase & sales voucher. please correct the coding. it will be a great help to me.
    i expect your valuable reply.

    thanking you,
     

    Attached Files:



  5. laxman

    laxman Member


    but need only purchase time please remove showing sale entry.....
     


Share This Page