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

#   Order numbers out of sync

##

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

Less More

- Posts: 68
- Thank you received: 8
-
-

4 years 6 days ago [\#345863](#345863) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  *[Order numbers out of sync](/forum/35-orders-management/905209-order-numbers-out-of-sync#345863 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : ‎3.10  Hello,  We have our Order number format and Invoice number format both set to W{id} so the order and invoice number are the same.  Recently an employee accidentally created an order and then deleted it now the invoice id is always 1 lower than the order id.  For example: Order number: W600 Invoice number: W599 ID: 600  Why is this the case if we are using W{id} as the format for both? Shouldn't this match the orders ID column?  Thanks, Nathan")* was created by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")*

-- HikaShop version -- : 4.6.2
-- Joomla version -- : ‎3.10

Hello,

We have our Order number format and Invoice number format both set to W{id} so the order and invoice number are the same.

Recently an employee accidentally created an order and then deleted it now the invoice id is always 1 lower than the order id.

For example:
Order number: W600
Invoice number: W599
ID: 600

Why is this the case if we are using W{id} as the format for both? Shouldn't this match the orders ID column?

Thanks,
Nathan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTIwOS1vcmRlci1udW1iZXJzLW91dC1vZi1zeW5jP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

4 years 5 days ago -  4 years 5 days ago [\#345865](#345865) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order numbers out of sync](/forum/35-orders-management/905209-order-numbers-out-of-sync#345865 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : ‎3.10  Hello,  We have our Order number format and Invoice number format both set to W{id} so the order and invoice number are the same.  Recently an employee accidentally created an order and then deleted it now the invoice id is always 1 lower than the order id.  For example: Order number: W600 Invoice number: W599 ID: 600  Why is this the case if we are using W{id} as the format for both? Shouldn't this match the orders ID column?  Thanks, Nathan")*

Hi,

{id} means {order_id} for the "order number format" and {order_invoice_id} for the "invoice number format".
The order_id is incremented when a new order is created.
The order_invoice_id is incremented when an order is confirmed (usually after a payment).
So if an order is created but not confirmed, the order_id will be incremented but not the order_invoice_id and thus if you use {id} for both formats you'll get a discrepency.
If you want the invoice number format setting to use the order_id, then you need to use {order_id} instead of {id}

Last edit: 4 years 5 days ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 68
- Thank you received: 8
-
-

4 years 5 days ago [\#345886](#345886) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  Replied by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")* on topic *[Order numbers out of sync](/forum/35-orders-management/905209-order-numbers-out-of-sync#345886 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : ‎3.10  Hello,  We have our Order number format and Invoice number format both set to W{id} so the order and invoice number are the same.  Recently an employee accidentally created an order and then deleted it now the invoice id is always 1 lower than the order id.  For example: Order number: W600 Invoice number: W599 ID: 600  Why is this the case if we are using W{id} as the format for both? Shouldn't this match the orders ID column?  Thanks, Nathan")*

Thank you very much. That makes sense.
Is there any risk to changing order/invoice number format now? Will it change old old orders or just the future ones?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTIwOS1vcmRlci1udW1iZXJzLW91dC1vZi1zeW5jP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

4 years 2 days ago [\#345910](#345910) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order numbers out of sync](/forum/35-orders-management/905209-order-numbers-out-of-sync#345910 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : ‎3.10  Hello,  We have our Order number format and Invoice number format both set to W{id} so the order and invoice number are the same.  Recently an employee accidentally created an order and then deleted it now the invoice id is always 1 lower than the order id.  For example: Order number: W600 Invoice number: W599 ID: 600  Why is this the case if we are using W{id} as the format for both? Shouldn't this match the orders ID column?  Thanks, Nathan")*

Hi,

It won't change the old orders, only the future ones.
There is no risk.

The following user(s) said Thank You: [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")

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

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

Less More

- Posts: 68
- Thank you received: 8
-
-

3 years 11 months ago [\#346372](#346372) by [MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")  Replied by *[MumsHealth](/forum/user/21338-mumshealth "View MumsHealth's Profile")* on topic *[Order numbers out of sync](/forum/35-orders-management/905209-order-numbers-out-of-sync#346372 "-- HikaShop version -- : 4.6.2 -- Joomla version -- : ‎3.10  Hello,  We have our Order number format and Invoice number format both set to W{id} so the order and invoice number are the same.  Recently an employee accidentally created an order and then deleted it now the invoice id is always 1 lower than the order id.  For example: Order number: W600 Invoice number: W599 ID: 600  Why is this the case if we are using W{id} as the format for both? Shouldn't this match the orders ID column?  Thanks, Nathan")*

Thank you. I forgot to respond to this but it worked!

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

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

[](#top)
