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

#   Invoice Number for Points Payment

##

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

Less More

- Posts: 575
- Thank you received: 11
-
-

7 years 4 months ago [\#308655](#308655) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  *[Invoice Number for Points Payment](/forum/29-payment-methods/897884-invoice-number-for-points-payment#308655 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6  Hi,  We found that the orders that using points payment method does not generate a correct invoice ID, Can you please have a look?  Thank you.")* was created by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")*

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.6

Hi,

We found that the orders that using points payment method does not generate a correct invoice ID,
Can you please have a look?

Thank you.

- [ ![paywithpointsinvoice.PNG](/forum/attachment/47251) ](/forum/attachment/47251 "...ntsinvoice.PNG") [ ](/forum/attachment/47251?download=1 "...ntsinvoice.PNG")

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

7 years 4 months ago [\#308670](#308670) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Invoice Number for Points Payment](/forum/29-payment-methods/897884-invoice-number-for-points-payment#308670 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6  Hi,  We found that the orders that using points payment method does not generate a correct invoice ID, Can you please have a look?  Thank you.")*

Hi,

How did you configure the "invoice number format" setting of the Hikashop configuration ?
And could you provide a screenshot of the settings of the user points payment method ?

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

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

Less More

- Posts: 575
- Thank you received: 11
-
-

7 years 4 months ago [\#308735](#308735) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Invoice Number for Points Payment](/forum/29-payment-methods/897884-invoice-number-for-points-payment#308735 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6  Hi,  We found that the orders that using points payment method does not generate a correct invoice ID, Can you please have a look?  Thank you.")*

Hi,

The screenshot has been attached, please have a look. Thank you.

- [ ![invsetting.PNG](/forum/attachment/47268) ](/forum/attachment/47268 "invsetting.PNG") [ ](/forum/attachment/47268?download=1 "invsetting.PNG")
- [ ![pointpaymentsetting2.PNG](/forum/attachment/47269) ](/forum/attachment/47269 "...ntsetting2.PNG") [ ](/forum/attachment/47269?download=1 "...ntsetting2.PNG")
- [ ![pointpaymentsetting1.PNG](/forum/attachment/47270) ](/forum/attachment/47270 "...ntsetting1.PNG") [ ](/forum/attachment/47270?download=1 "...ntsetting1.PNG")

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

7 years 4 months ago [\#308742](#308742) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Invoice Number for Points Payment](/forum/29-payment-methods/897884-invoice-number-for-points-payment#308742 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6  Hi,  We found that the orders that using points payment method does not generate a correct invoice ID, Can you please have a look?  Thank you.")*

Hi,

I'm not sure why it does that.
Could you also provide a screenshot of the history area of that order with the issue so that we can get a better understanding of the flow when the order is created/confirmed ?

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

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

Less More

- Posts: 575
- Thank you received: 11
-
-

7 years 4 months ago [\#308792](#308792) by [ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")  Replied by *[ler@singmuiheng.com](/forum/user/3330-ler-singmuiheng-com "View ler@singmuiheng.com's Profile")* on topic *[Invoice Number for Points Payment](/forum/29-payment-methods/897884-invoice-number-for-points-payment#308792 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6  Hi,  We found that the orders that using points payment method does not generate a correct invoice ID, Can you please have a look?  Thank you.")*

Hi,

As requested, please have a look.

- [ ![orderhistory.PNG](/forum/attachment/47279) ](/forum/attachment/47279 "orderhistory.PNG") [ ](/forum/attachment/47279?download=1 "orderhistory.PNG")

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

7 years 4 months ago [\#308820](#308820) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Invoice Number for Points Payment](/forum/29-payment-methods/897884-invoice-number-for-points-payment#308820 "-- HikaShop version -- : 4.1.0 -- Joomla version -- : 3.9.6  Hi,  We found that the orders that using points payment method does not generate a correct invoice ID, Can you please have a look?  Thank you.")*

Hi,

Ah yes, I see what is the problem.
In this case, the order status is changed by the user points plugin before the order is created.
And the invoice number is generated before the order is created.
However, you're using the "order_id" instead of "id" or "order_invoice_id" to generate the invoice number and the order_id is not available yet at this point.
So that will require moving the creating of the order_invoice_number just after the order is created instead to all for the order_id to be used in such cases where the order is directly created as confirmed.

I've added a patch on our end to fix that. You get the patch once you update to HikaShop 4.2.0

The following user(s) said Thank You: [n00bster](/forum/user/56367-n00bster "View n00bster's Profile")

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

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