Invoice Numbering


Currently we are using the below template for generating number for Invoice.

This is working fine as long as I generate invoices with current date.

In some cases I may have to generate invoices with old date, at that time I want invoice number be generated using invoice date instead of current date. Can somebody suggest any alternate way?



I don’t think it’s supported, you’d need to manually set the number.


Is there a way to add current week, just like the way we are adding current date({$date:ymd}{$counter})?

You can use {$date:W} to show the week number.