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

#   Order number and invoice number

##

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

Less More

- Posts: 30
- Thank you received: 4
-
-

2 years 6 days ago -  1 year 11 months ago [\#364519](#364519) by [Scramble ITS](/forum/user/82717-scramble-its "View Scramble ITS's Profile")  *[Order number and invoice number](/forum/35-orders-management/908886-order-number-and-invoice-number#364519 "-- url of the page with the problem -- :   www.scramble.nl  -- HikaShop version -- : 5.1.1 -- Joomla version -- : 5.2.1 -- PHP version -- : 8.1 -- Browser(s) name and version -- : Edge 130.0.2849.80  I have created an order ID in this format: {id size=&quot;5&quot;}/{date format=&quot;d/m/y&quot;} This works great. But is there a way to have the invoice number exactly the same as the order number? The invoice number is only created when the order goes to confirmed. With an electronic payment, this would be immediate. But we also allow bank transfers so then the status of the order will be changed later and another date will be created as invoice number.")* was created by *[Scramble ITS](/forum/user/82717-scramble-its "View Scramble ITS's Profile")*

-- url of the page with the problem -- : [ www.scramble.nl](https://www.scramble.nl)
-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.2.1
-- PHP version -- : 8.1
-- Browser(s) name and version -- : Edge 130.0.2849.80

I have created an order ID in this format: {id size="5"}/{date format="d/m/y"}
This works great.
But is there a way to have the invoice number exactly the same as the order number? The invoice number is only created when the order goes to confirmed. With an electronic payment, this would be immediate. But we also allow bank transfers so then the status of the order will be changed later and another date will be created as invoice number.

Last edit: 1 year 11 months ago by [Scramble ITS](/forum/user/82717-scramble-its "View Scramble ITS's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwODg4Ni1vcmRlci1udW1iZXItYW5kLWludm9pY2UtbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

2 years 5 days ago [\#364522](#364522) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order number and invoice number](/forum/35-orders-management/908886-order-number-and-invoice-number#364522 "-- url of the page with the problem -- :   www.scramble.nl  -- HikaShop version -- : 5.1.1 -- Joomla version -- : 5.2.1 -- PHP version -- : 8.1 -- Browser(s) name and version -- : Edge 130.0.2849.80  I have created an order ID in this format: {id size=&quot;5&quot;}/{date format=&quot;d/m/y&quot;} This works great. But is there a way to have the invoice number exactly the same as the order number? The invoice number is only created when the order goes to confirmed. With an electronic payment, this would be immediate. But we also allow bank transfers so then the status of the order will be changed later and another date will be created as invoice number.")*

Hi,

Yes.
If you want to use the same number you can either use the format:
{order_number}
Or the format:
{order_id size="5"}/{date format="d/m/y"}

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

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

Less More

- Posts: 30
- Thank you received: 4
-
-

1 year 11 months ago [\#364654](#364654) by [Scramble ITS](/forum/user/82717-scramble-its "View Scramble ITS's Profile")  Replied by *[Scramble ITS](/forum/user/82717-scramble-its "View Scramble ITS's Profile")* on topic *[Order number and invoice number](/forum/35-orders-management/908886-order-number-and-invoice-number#364654 "-- url of the page with the problem -- :   www.scramble.nl  -- HikaShop version -- : 5.1.1 -- Joomla version -- : 5.2.1 -- PHP version -- : 8.1 -- Browser(s) name and version -- : Edge 130.0.2849.80  I have created an order ID in this format: {id size=&quot;5&quot;}/{date format=&quot;d/m/y&quot;} This works great. But is there a way to have the invoice number exactly the same as the order number? The invoice number is only created when the order goes to confirmed. With an electronic payment, this would be immediate. But we also allow bank transfers so then the status of the order will be changed later and another date will be created as invoice number.")*

I inserted {order_number} and created a new order, but the invoice number stays empty.
I don't think that your second solution will do the trick. It will with an electronic payment. But if you have a banktransfer then the order will only be confirmed a few days later and so the order_id will probably be right, but not the date. It will take the date of confirmation, not the date the order was placed. Or do I miss something here?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwODg4Ni1vcmRlci1udW1iZXItYW5kLWludm9pY2UtbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

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

1 year 11 months ago [\#364659](#364659) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order number and invoice number](/forum/35-orders-management/908886-order-number-and-invoice-number#364659 "-- url of the page with the problem -- :   www.scramble.nl  -- HikaShop version -- : 5.1.1 -- Joomla version -- : 5.2.1 -- PHP version -- : 8.1 -- Browser(s) name and version -- : Edge 130.0.2849.80  I have created an order ID in this format: {id size=&quot;5&quot;}/{date format=&quot;d/m/y&quot;} This works great. But is there a way to have the invoice number exactly the same as the order number? The invoice number is only created when the order goes to confirmed. With an electronic payment, this would be immediate. But we also allow bank transfers so then the status of the order will be changed later and another date will be created as invoice number.")*

Hi,

The invoice number is not necessarily generated at the same time as the order number.
The order number is generated when an order is created.
The invoice number is generated based on the enabled statuses under the "invoice" column of the System&gt;Order statuses menu.
By default, only the "confirmed" and "shipped" statuses are enabled so the invoice number is generated when the order status changes to "confirmed" or "shipped".
So, if you want the invoice number to be generated when the order is created, you can enable the "created" status under that column.
And in that case, the second solution I proposed will work like you want.
But you're right that if you use the second solution and the created status is not enabled under the invoice column, and the order is not confirmed / shipped on the same day it is created, the invoice number will be different from the order number.

The following user(s) said Thank You: [Scramble ITS](/forum/user/82717-scramble-its "View Scramble ITS's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwODg4Ni1vcmRlci1udW1iZXItYW5kLWludm9pY2UtbnVtYmVyP3RtcGw9bWFya2Rvd24=) 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.068 seconds

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