Skip to main content

wrong Invoice number format derived from order

More
9 years 3 months ago #271602 by peteo
-- HikaShop version -- : 3.1
-- Joomla version -- : 3.7
-- PHP version -- : 7.1

I followed the instructions for the "Order number format" at www.hikashop.com/19-documentation/hikash...hikashop-config.html but it gives unexpected results for the "Invoice Number format". My "Order number format" is:
Code:
{id size="7"}{date format="my"}
My "Invoice number format" is:
Code:
{order_id}i
That results in the expected 00000380617 for the order but in the unexpexcted 38i for the invoice. Why is it not taking the entire order_id into account?

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #271605 by Jerome
Hello,

I'm afraid the results are correct.
Please do not mix up "order id" and "order number".

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago - 9 years 3 months ago #271652 by peteo
Ok, so I mixed it up. Now how do I get the desired invoice number "00000380617i"? Thanks

EDIT: I tried
Code:
{order_number}i
but the variable order_number does not seem to exist.
Last edit: 9 years 3 months ago by peteo.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #271662 by nicolas
Hi,

You need to use that format too for the invoice number format: {id size="7"}{date format="my"}

Now {order_number} should work too unless the order is being created as already confirmed and thus the order_number is not yet set when the invoice number is generated in that particular case.

Please Log in or Create an account to join the conversation.

Time to create page: 0.214 seconds
Powered by Kunena Forum