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

#   Different Invoice Number for different User Groups

##

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

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 4 months ago [\#208457](#208457) by [sapura](/forum/user/37805-sapura "View sapura's Profile")  *[Different Invoice Number for different User Groups](/forum/35-orders-management/878177-different-invoice-number-for-different-user-groups#208457 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29  Hi,  I would like to have different running invoice number for different user groups. For example, User from group A makes a purchase, the invoice will be A/2015/00001 User from group B makes a purchase, the invoice will be B/2015/00001 2nd User from group A makes a purchase, the invoice will be A/2015/00002 2nd User from group B makes a purchase, the invoice will be B/2015/00002  Can you help? Thanks.")* was created by *[sapura](/forum/user/37805-sapura "View sapura's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.29

Hi,

I would like to have different running invoice number for different user groups.
For example,
User from group A makes a purchase, the invoice will be A/2015/00001
User from group B makes a purchase, the invoice will be B/2015/00001
2nd User from group A makes a purchase, the invoice will be A/2015/00002
2nd User from group B makes a purchase, the invoice will be B/2015/00002

Can you help? Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3ODE3Ny1kaWZmZXJlbnQtaW52b2ljZS1udW1iZXItZm9yLWRpZmZlcmVudC11c2VyLWdyb3Vwcz90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14325
-
-

11 years 4 months ago [\#208467](#208467) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Different Invoice Number for different User Groups](/forum/35-orders-management/878177-different-invoice-number-for-different-user-groups#208467 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.3.29  Hi,  I would like to have different running invoice number for different user groups. For example, User from group A makes a purchase, the invoice will be A/2015/00001 User from group B makes a purchase, the invoice will be B/2015/00001 2nd User from group A makes a purchase, the invoice will be A/2015/00002 2nd User from group B makes a purchase, the invoice will be B/2015/00002  Can you help? Thanks.")*

Hi,

There is no option to do that by default in HikaShop.
What you can do however is to develop a small hikashop plugin and implement the onBeforeInvoiceNumberGenerate(&amp;$data, &amp;$result) trigger in order to generate the invoice number yourself the way you want it.

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

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