Custom invoice numbering system

I’d like to change the invoice numbering format to:


where 2016 is year; 12 is month; and 001 will be auto-incremented as 002, 003, etc. and will reset at the beginning of each month (e.g. 2017-01-001)

How can I achieve this? Thanks.

For Invoices core implementation you can check the file modules/AOS_Invoices/AOS_Invoices.php

For custom format numbering, you should create a new custom field from studio. Add this field in Detial view only so you can only see it but nobody can edit it.

Then in Before Save Logic Hook assign the format of DATE that you require to this custom field and that will show in Detail View.

1 Like