How to create invoice number as below required?
Invoice format DP1411-0001 it contain three piece.
- DP = type of invoice
- 14 = year of create invoice
- 11 = month of creating invoice
- 0001 = number of invoice that generate by invoice amount
Example
- DP1411-0001
- DP1411-0002
- DP1411-0003
- ...........
- DP1411-000n
But I have not any idea or logic to create.