Invoice Numbering

Hi,

Currently we are using the below template for generating number for Invoice.
I-{$date:ymd}{$counter}

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?

Thanks

Hi,

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

Ok.

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.

https://www.php.net/manual/en/datetime.format.php