I want 4 digit autoincrement number as Invoice Number.
e.g. first it would be like- Invoice NUmber - 0001
after saving the record in database and clicking on new invoice button it shoul be 0002.
I did it but I am getting the Invoice number as- 2 whereas I want as 0002