previous invoice no on new sales voucher screen

Discussion in 'Free Source Codes' started by Rajan Ghanshyam, Mar 19, 2021.

    

  1. previous invoice no on new sales voucher screen
    i am using manually invoice no so, every time i hv to go to sales ledger to check last invoice no.

    if i can see previous invoice no on sales voucher screen then it would be easy.

    Thanks in Advance
    Ranan Ghanshyam
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Yes ... you can see it.

    Make a collection of Sales Invoices, Sort it on reverse DATE....... and use CollectionField to show the last Invoice Number on the screen.
     


  3. NiravMerchant

    NiravMerchant Active Member


    You can use this logic
    [#Line: VCH Type]

    Add : Field : Man VCH Number

    [Field: Man VCH Number]

    Use : Name Field
    Set as : $$PrevNumber:##SVVoucherType
    skip : yes
    SEt Always : Yes
    invisible : not (($$increatemode and @@issales) or ($$increatemode and @@isdelnote))
     


Share This Page