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

#   Ordernumber and Invoicenumber always the same

##

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

Less More

- Posts: 54
- Thank you received: 4
-
-

8 years 7 months ago [\#290734](#290734) by [Ginius](/forum/user/39267-ginius "View Ginius's Profile")  *[Ordernumber and Invoicenumber always the same](/forum/35-orders-management/894337-ordernumber-and-invoicenumber-always-the-same#290734 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6  LS,  I hav an issue with the invoice that is created (with attachinvoice).  I understood that an ordernumber is always created, but the invoicenumber only when order is confirmed.  What I see is that after I confirmed the order, the invoicenumer is still the same as in ordernumer. This is not what I expected.  The ordernumber format is: OG-{id size=&quot;5&quot;} The invoicenumber format is: FG-{date format=&quot;m/y&quot;}{id size=&quot;5&quot;}  Why are the numbers the same? This is not what I expected.")* was created by *[Ginius](/forum/user/39267-ginius "View Ginius's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.6

LS,

I hav an issue with the invoice that is created (with attachinvoice).

I understood that an ordernumber is always created, but the invoicenumber only when order is confirmed.

What I see is that after I confirmed the order, the invoicenumer is still the same as in ordernumer. This is not what I expected.

The ordernumber format is: OG-{id size="5"}
The invoicenumber format is: FG-{date format="m/y"}{id size="5"}

Why are the numbers the same? This is not what I expected.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NDMzNy1vcmRlcm51bWJlci1hbmQtaW52b2ljZW51bWJlci1hbHdheXMtdGhlLXNhbWU/dG1wbD1tYXJrZG93bg==) 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
-
-

8 years 7 months ago [\#290735](#290735) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ordernumber and Invoicenumber always the same](/forum/35-orders-management/894337-ordernumber-and-invoicenumber-always-the-same#290735 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6  LS,  I hav an issue with the invoice that is created (with attachinvoice).  I understood that an ordernumber is always created, but the invoicenumber only when order is confirmed.  What I see is that after I confirmed the order, the invoicenumer is still the same as in ordernumer. This is not what I expected.  The ordernumber format is: OG-{id size=&quot;5&quot;} The invoicenumber format is: FG-{date format=&quot;m/y&quot;}{id size=&quot;5&quot;}  Why are the numbers the same? This is not what I expected.")*

Hi,

What do you mean by the same ?
You mean that you get OG-0001 for the invoice number in the PDF ?
Are you sure that the invoice number has been generated in the order ?
Note that the invoice number will only be generated when the order status is changed to one of the order statuses enabled in the column "invoice" of the menu System&gt;Order statuses.
And when the invoice number is not yet generated and you ask the PDF invoice plugin to generate an invoice, it will use the order number as invoice number because in some cases, people want to provide invoices before the orders have been paid (and thus the invoice number generated with the order status changing to "confirmed" ).

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

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

Less More

- Posts: 54
- Thank you received: 4
-
-

8 years 7 months ago [\#290770](#290770) by [Ginius](/forum/user/39267-ginius "View Ginius's Profile")  Replied by *[Ginius](/forum/user/39267-ginius "View Ginius's Profile")* on topic *[Ordernumber and Invoicenumber always the same](/forum/35-orders-management/894337-ordernumber-and-invoicenumber-always-the-same#290770 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6  LS,  I hav an issue with the invoice that is created (with attachinvoice).  I understood that an ordernumber is always created, but the invoicenumber only when order is confirmed.  What I see is that after I confirmed the order, the invoicenumer is still the same as in ordernumer. This is not what I expected.  The ordernumber format is: OG-{id size=&quot;5&quot;} The invoicenumber format is: FG-{date format=&quot;m/y&quot;}{id size=&quot;5&quot;}  Why are the numbers the same? This is not what I expected.")*

Hi NIcolas,

Thaks for you help.

> Note that the invoice number will only be generated when the order status is changed to one of the order statuses enabled in the column "invoice" of the menu System&gt;Order statuses. This did the trick.

Indeed generating invoices was not active.

I'm using also the attachinvoice-plug in. The invoice is now send when the order is changed to confirmend. Is it also possible that the invoice is send directly when the order is made? The flow for my customer is then a little bit easier.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NDMzNy1vcmRlcm51bWJlci1hbmQtaW52b2ljZW51bWJlci1hbHdheXMtdGhlLXNhbWU/dG1wbD1tYXJrZG93bg==) 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
-
-

8 years 7 months ago [\#290779](#290779) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ordernumber and Invoicenumber always the same](/forum/35-orders-management/894337-ordernumber-and-invoicenumber-always-the-same#290779 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3.8.6  LS,  I hav an issue with the invoice that is created (with attachinvoice).  I understood that an ordernumber is always created, but the invoicenumber only when order is confirmed.  What I see is that after I confirmed the order, the invoicenumer is still the same as in ordernumer. This is not what I expected.  The ordernumber format is: OG-{id size=&quot;5&quot;} The invoicenumber format is: FG-{date format=&quot;m/y&quot;}{id size=&quot;5&quot;}  Why are the numbers the same? This is not what I expected.")*

Hi,

Sure. You can use the "status override" setting of the plugin to enter the statuses for which you want to send the PDF invoice.
If you enter: created,confirmed
then the PDF will be included in both the order creation notification email when the order is created and the order status notification email when the order is confirmed.

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

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