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

#   How can I set the invoice number in the invoice?

##

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 9 months ago [\#90318](#90318) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  *[How can I set the invoice number in the invoice?](/forum/23-market-how-to/78414-how-can-i-set-the-invoice-number-in-the-invoice#90318 "I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format=&quot;Y&quot;}/{id size=&quot;5&quot;} so I can have: 2013/00001  Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001  What's wrong?")* was created by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")*

I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format="Y"}/{id size="5"} so I can have: 2013/00001

Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001

What's wrong?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzg0MTQtaG93LWNhbi1pLXNldC10aGUtaW52b2ljZS1udW1iZXItaW4tdGhlLWludm9pY2U/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

13 years 9 months ago [\#90322](#90322) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How can I set the invoice number in the invoice?](/forum/23-market-how-to/78414-how-can-i-set-the-invoice-number-in-the-invoice#90322 "I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format=&quot;Y&quot;}/{id size=&quot;5&quot;} so I can have: 2013/00001  Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001  What's wrong?")*

Hi,

The invoice number format for vendors should be set in the vendor configuration itself.
It does not use the general HikaShop option but I have to add an option in order to set a default configuration for the vendors.

Regards,

---

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

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

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 9 months ago [\#90325](#90325) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[How can I set the invoice number in the invoice?](/forum/23-market-how-to/78414-how-can-i-set-the-invoice-number-in-the-invoice#90325 "I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format=&quot;Y&quot;}/{id size=&quot;5&quot;} so I can have: 2013/00001  Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001  What's wrong?")*

I've just set the vendor invoice number format in the vendor options this way: {date format="Y"}/{id size="5"} but still I see the order number format instead of this in the new invoices I try to generate.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzg0MTQtaG93LWNhbi1pLXNldC10aGUtaW52b2ljZS1udW1iZXItaW4tdGhlLWludm9pY2U/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

13 years 9 months ago [\#90328](#90328) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How can I set the invoice number in the invoice?](/forum/23-market-how-to/78414-how-can-i-set-the-invoice-number-in-the-invoice#90328 "I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format=&quot;Y&quot;}/{id size=&quot;5&quot;} so I can have: 2013/00001  Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001  What's wrong?")*

Hi,

I am sorry but it works fine.
[ ![market&#95;config&#95;vendor.jpg](/forum/attachment/8613) ](/forum/attachment/8613 "...fig&#95;vendor.jpg")

When I change the order status of a created sub order (which does not have any invoice id generated).
The generated invoice id is right:
[ ![market&#95;order&#95;invoice.jpg](/forum/attachment/8614) ](/forum/attachment/8614 "...er&#95;invoice.jpg")

Regards,

---

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

- [ ![market&#95;config&#95;vendor.jpg](/forum/attachment/8613) ](/forum/attachment/8613 "...fig&#95;vendor.jpg") [ ](/forum/attachment/8613?download=1 "...fig&#95;vendor.jpg")
- [ ![market&#95;order&#95;invoice.jpg](/forum/attachment/8614) ](/forum/attachment/8614 "...er&#95;invoice.jpg") [ ](/forum/attachment/8614?download=1 "...er&#95;invoice.jpg")

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

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 9 months ago [\#90331](#90331) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[How can I set the invoice number in the invoice?](/forum/23-market-how-to/78414-how-can-i-set-the-invoice-number-in-the-invoice#90331 "I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format=&quot;Y&quot;}/{id size=&quot;5&quot;} so I can have: 2013/00001  Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001  What's wrong?")*

In the vendor options I cannot see the "Vendor root category". Something misconfigured in my case?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vNzg0MTQtaG93LWNhbi1pLXNldC10aGUtaW52b2ljZS1udW1iZXItaW4tdGhlLWludm9pY2U/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

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

13 years 9 months ago [\#90335](#90335) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How can I set the invoice number in the invoice?](/forum/23-market-how-to/78414-how-can-i-set-the-invoice-number-in-the-invoice#90335 "I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format=&quot;Y&quot;}/{id size=&quot;5&quot;} so I can have: 2013/00001  Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001  What's wrong?")*

Hi,

It's because you don't have the option "Change vendor root category" activated.
There is no link with the invoice generation.

Regards,

---

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

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

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

Less More

- Posts: 60
- Thank you received: 1
-
-

12 years 9 months ago -  12 years 9 months ago [\#142380](#142380) by [mitchie](/forum/user/11906-mitchie "View mitchie's Profile")  Replied by *[mitchie](/forum/user/11906-mitchie "View mitchie's Profile")* on topic *[How can I set the invoice number in the invoice?](/forum/23-market-how-to/78414-how-can-i-set-the-invoice-number-in-the-invoice#142380 "I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format=&quot;Y&quot;}/{id size=&quot;5&quot;} so I can have: 2013/00001  Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001  What's wrong?")*

Hi,
I'm missing something...
I don't understand the difference between "Vendor Invoice Number"and "Invoice Number".

I need just a simple number (1, 2, 3, 4...) restarting from 1 each 1 jan /each year.

I understand that Hikashop now has this feature but I don't see any documentation on how to get it out (I've seen the format {id} but I still get a different style).
Is there a way to get control of the order_invoice_number field in order table?
Where this number is generated in?
Thanks in advance!

Last edit: 12 years 9 months ago by [mitchie](/forum/user/11906-mitchie "View mitchie's Profile").

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

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

Less More

- Posts: 60
- Thank you received: 1
-
-

12 years 9 months ago [\#142382](#142382) by [mitchie](/forum/user/11906-mitchie "View mitchie's Profile")  Replied by *[mitchie](/forum/user/11906-mitchie "View mitchie's Profile")* on topic *[How can I set the invoice number in the invoice?](/forum/23-market-how-to/78414-how-can-i-set-the-invoice-number-in-the-invoice#142382 "I need to generate a sequential invoice number. I've setted the hikashop parameter for the invoice number format this way: {date format=&quot;Y&quot;}/{id size=&quot;5&quot;} so I can have: 2013/00001  Anyway when I generate the invoice for the vendor I still see the order number in the invoice instead of this 2013/00001  What's wrong?")*

I've got it.
Changes to invoice number format work only on new invoices as the number is saved formatted..

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.060 seconds

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