- Posts: 107
- Thank you received: 3
Progressive invoice number without "holes"
13 years 10 months ago #84693
by lanzanet
Replied by lanzanet on topic Re: Progressive invoice number without "holes"
Hi.
For those who can't wait to reset the INVOICE number, I've got a simple procedure to get this.
Please, don't use it before someone of the hikashop support gives the ok to this steps. Now it's working for me.
With my MySQL client I've oppened the hikashop table 'hikashop_order' and reset to '0' the column 'order_invoice_id'. I think this column only stores the last generated invoice number, and has no other purpose once the real invoice number is generated and formatted acording to the specified format in hikashop config. So if you reset this column to '0', the next invoice number will be '1', and you will lose no data. To have a clear invoice number sequence, I've configured the format with the year, something like {date format="y"}/{id size="5"}, resulting in 13/00001. This has no effect in the order number, that will follow the sequence of the prior year (I've also configured the order format including the year), but with this steps I've solved the 'legal' problem of the invoices, to start in number '1' each beginnig of a new year.
One you have oppened your database with your MySQL client, the query you have to execute is as simple as: UPDATE [your_joomla_prefix]_hikashop_order SET order_invoice_id=0
Please, Could someone of the hikashop team confirm this?
Thanks.
For those who can't wait to reset the INVOICE number, I've got a simple procedure to get this.
Please, don't use it before someone of the hikashop support gives the ok to this steps. Now it's working for me.
With my MySQL client I've oppened the hikashop table 'hikashop_order' and reset to '0' the column 'order_invoice_id'. I think this column only stores the last generated invoice number, and has no other purpose once the real invoice number is generated and formatted acording to the specified format in hikashop config. So if you reset this column to '0', the next invoice number will be '1', and you will lose no data. To have a clear invoice number sequence, I've configured the format with the year, something like {date format="y"}/{id size="5"}, resulting in 13/00001. This has no effect in the order number, that will follow the sequence of the prior year (I've also configured the order format including the year), but with this steps I've solved the 'legal' problem of the invoices, to start in number '1' each beginnig of a new year.
One you have oppened your database with your MySQL client, the query you have to execute is as simple as: UPDATE [your_joomla_prefix]_hikashop_order SET order_invoice_id=0
Please, Could someone of the hikashop team confirm this?
Thanks.
Please Log in or Create an account to join the conversation.
13 years 10 months ago #84729
by Xavier
Replied by Xavier on topic Re: Progressive invoice number without "holes"
Hi,
I confirm that you can do this way.
A new option should be in the next release, which will allow you to set when must the invoice number be reset. (every months or every years)
I confirm that you can do this way.
A new option should be in the next release, which will allow you to set when must the invoice number be reset. (every months or every years)
The following user(s) said Thank You: lanzanet
Please Log in or Create an account to join the conversation.
13 years 6 months ago #105432
by egel
Replied by egel on topic Re: Progressive invoice number without "holes"
is there any way how to start invoice number from 1 instead of 0 ???
Please Log in or Create an account to join the conversation.
13 years 6 months ago #105441
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Re: Progressive invoice number without "holes"
Hi,
The problem is, the invoice number does not start from 0, it already starts from 1.
0 is when there is no invoice number.
Regards,
The problem is, the invoice number does not start from 0, it already starts from 1.
0 is when there is no invoice number.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.055 seconds