[Skip to main content](#vessel-content)

#   wrong Invoice number format derived from order

##

- **[peteo](/forum/user/33887-peteo "View peteo's Profile")**
- [![peteo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33887-peteo "View peteo's Profile") Topic Author
- [ Offline](/forum/user/33887-peteo)

Less More

- Posts: 114
- Thank you received: 4
-
-

9 years 5 months ago [\#271602](#271602) by [peteo](/forum/user/33887-peteo "View peteo's Profile")  *[wrong Invoice number format derived from order](/forum/35-orders-management/890648-wrong-invoice-number-format-derived-from-order#271602 "-- HikaShop version -- : 3.1 -- Joomla version -- : 3.7 -- PHP version -- : 7.1  I followed the instructions for the &quot;Order number format&quot; at   www.hikashop.com/19-documentation/hikash...hikashop-config.html  but it gives unexpected results for the &quot;Invoice Number format&quot;. My &quot;Order number format&quot; is:  My &quot;Invoice number format&quot; is:  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&#95;id into account?")* was created by *[peteo](/forum/user/33887-peteo "View peteo's Profile")*

-- 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](https://www.hikashop.com/19-documentation/hikashop/installation-configuration/54-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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MDY0OC13cm9uZy1pbnZvaWNlLW51bWJlci1mb3JtYXQtZGVyaXZlZC1mcm9tLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 5 months ago [\#271605](#271605) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[wrong Invoice number format derived from order](/forum/35-orders-management/890648-wrong-invoice-number-format-derived-from-order#271605 "-- HikaShop version -- : 3.1 -- Joomla version -- : 3.7 -- PHP version -- : 7.1  I followed the instructions for the &quot;Order number format&quot; at   www.hikashop.com/19-documentation/hikash...hikashop-config.html  but it gives unexpected results for the &quot;Invoice Number format&quot;. My &quot;Order number format&quot; is:  My &quot;Invoice number format&quot; is:  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&#95;id into account?")*

Hello,

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

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MDY0OC13cm9uZy1pbnZvaWNlLW51bWJlci1mb3JtYXQtZGVyaXZlZC1mcm9tLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[peteo](/forum/user/33887-peteo "View peteo's Profile")**
- [![peteo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33887-peteo "View peteo's Profile") Topic Author
- [ Offline](/forum/user/33887-peteo)

Less More

- Posts: 114
- Thank you received: 4
-
-

9 years 5 months ago -  9 years 5 months ago [\#271652](#271652) by [peteo](/forum/user/33887-peteo "View peteo's Profile")  Replied by *[peteo](/forum/user/33887-peteo "View peteo's Profile")* on topic *[wrong Invoice number format derived from order](/forum/35-orders-management/890648-wrong-invoice-number-format-derived-from-order#271652 "-- HikaShop version -- : 3.1 -- Joomla version -- : 3.7 -- PHP version -- : 7.1  I followed the instructions for the &quot;Order number format&quot; at   www.hikashop.com/19-documentation/hikash...hikashop-config.html  but it gives unexpected results for the &quot;Invoice Number format&quot;. My &quot;Order number format&quot; is:  My &quot;Invoice number format&quot; is:  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&#95;id into account?")*

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 5 months ago by [peteo](/forum/user/33887-peteo "View peteo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MDY0OC13cm9uZy1pbnZvaWNlLW51bWJlci1mb3JtYXQtZGVyaXZlZC1mcm9tLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

9 years 5 months ago [\#271662](#271662) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[wrong Invoice number format derived from order](/forum/35-orders-management/890648-wrong-invoice-number-format-derived-from-order#271662 "-- HikaShop version -- : 3.1 -- Joomla version -- : 3.7 -- PHP version -- : 7.1  I followed the instructions for the &quot;Order number format&quot; at   www.hikashop.com/19-documentation/hikash...hikashop-config.html  but it gives unexpected results for the &quot;Invoice Number format&quot;. My &quot;Order number format&quot; is:  My &quot;Invoice number format&quot; is:  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&#95;id into account?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MDY0OC13cm9uZy1pbnZvaWNlLW51bWJlci1mb3JtYXQtZGVyaXZlZC1mcm9tLW9yZGVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
