Voucher Numbering

Discussion in 'Tally Developer' started by Bibek D., May 30, 2019.

    
Tags:
  1. Bibek D.

    Bibek D. New Member


    Dear Experts:

    My requirements:
    1) I want my voucher no. to restart from 1 every day.
    2) If there are 5 entries on 15th APril (future date) and if I try to make entry on 15th April, it should show voucher no. 6.
    3) If I make 10 entries today i.e. upto voucher 10 and I switch to future date, number should be 1 if no any entry is done on that date.

    My achievement:
    1) If there are 10 entries on 10th Feb (past date) and if I try to make entry on 1oth Feb, it shows voucher no. 11.
    It works fine with past date.

    Issues:
    1) If there are 4 entries today and if i select next date (tomorrow or any future date), it shows voucher no. 5 but I want it voucher no. 1. If there are any entries already in future date (eg: 5 entries) and if I try to make entry on that particular date, it should show voucher no. 6


    Hope i presented my confusion clearly.

    Any help will be appreciated.

    Thanks.
     

    Attached Files:



  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Make a zero valued entry on 31-march of the current period............ then try.
     


  3. sattam

    sattam Active Member


    There is this option in Tally default feature daily voucher numbering
     


  4. Bibek D.

    Bibek D. New Member


    Dear Sattam sir,
    I want prefix to be updated daily as well as per the date. So i tried to code accordingly.
     


  5. Bibek D.

    Bibek D. New Member


    Dear sir,
    I did't get you at all. How can a zero valued entry help in rectifying the issue?
     


  6. Bibek D.

    Bibek D. New Member


    Any solution to the issue?
     


  7. Bibek D.

    Bibek D. New Member


    Set as : ##SVVoucherType+"_" + $$ZeroFill:($$YearOfDate:$$CurrentDate):2+"/"+ $$ZeroFill:($$MonthOfDate:$$CurrentDate):2+"/"+$$ZeroFill:($$DayOfDate:$$CurrentDate):2 + " - " + $$string:#VCHNumber

    This code is fetching effective date... how can i fetch voucher date instead of effective date????
     


Share This Page