We have invoice generation module for customers, we need to give editable option for invoice number while generating invoice.
it should be unique and alpha numeric.
My requirement is when generating invoice, we should display automatically new invoice number in editable mode.
for this is there any logic ( i mean any algorithm ) available.
Invoice number should be like below:
- If entered invoice number 245 then next number should be 246.
- If entered invoice number 245A then next number should be 246A.
- If entered invoice number AAA then next number should be search for max value in database and increment to one value.
Thanks
Praveen