Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0058244 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Discounts and Promotions | minor | always | 2025-03-14 09:54 | 2025-03-31 09:31 | |||
Reporter | eliezerSotomayor | View Status | public | |||||
Assigned To | Bimla_vm | |||||||
Priority | normal | Resolution | duplicate | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0058244: qtyOffer is set to 0 when the limit is reached in a Pack discount with multiple instances | |||||||
Description | When reaching the limit of a Pack discount with multiple instances configured, the discount engine does not calculate the qtyOffer of each line correctly. Before reaching the limit, it calculates correctly. However, once the limit is reached, it sets the qtyOffer to 0. | |||||||
Steps To Reproduce | PRECONDITION (BACKOFFICE): - Go to the Discount & Promotions window - Open the Test Coupon discount - Set the Discount/Promotion Type to 'Pack' - Set the Currency to 'EUR' and the Discount/Promotion Price to 10 - Set the Limit Multiple Instances per Order field to true - Set the Limit of Instances per Order field to '2' - Set the Included Products field to 'Only those defined' - Go to the Products subtab below - Add the Avalanche Transceiver product with a quantity of 1 - Add the Headlamp Ultralight product with a quantity of 2 TEST IN POS: - Use a Standard Terminal (VBS-2). - Add the Avalanche Transceiver product 1 times - Add the Headlamp Ultralight product 2 times - Check the console * Open the console (Press F12) * Print the lines (OB.App.State.getState().Ticket.lines) * In each line object, open its promotions and check the 'qtyOffer' value ( Can use this line: OB.App.State.getState().Ticket.lines.forEach(l=>console.log(l.promotions)) ) * The first line has a qtyOffer of 1, and the second has a qtyOffer of 2 - Add again the Avalanche Transceiver product 1 times (Total: 2 x Avalanche Transceiver) - Add again the Headlamp Ultralight product 2 times (Total: 4 x Avalanche Transceiver) - Note that we reach the limit configured in the backoffice: 'Limit of Instances per Order' - Check the console * Open the console * Print the lines * In each line object, open its promotions and check the 'qtyOffer' value * The first line has a qtyOffer of 0, and the second has a qtyOffer of 0 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0177710) hgbot (developer) 2025-03-31 09:31 |
Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24461 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2025-03-14 09:54 | eliezerSotomayor | New Issue | |
2025-03-14 09:54 | eliezerSotomayor | Assigned To | => Retail |
2025-03-14 09:54 | eliezerSotomayor | OBNetwork customer | => No |
2025-03-14 09:54 | eliezerSotomayor | Triggers an Emergency Pack | => No |
2025-03-17 08:51 | guilleaer | Assigned To | Retail => guilleaer |
2025-03-17 08:51 | guilleaer | Status | new => acknowledged |
2025-03-25 13:06 | Bimla_vm | Assigned To | guilleaer => Bimla_vm |
2025-03-25 13:06 | Bimla_vm | Status | acknowledged => scheduled |
2025-03-31 09:31 | hgbot | Note Added: 0177710 | |
2025-03-31 09:31 | hgbot | Status | scheduled => closed |
2025-03-31 09:31 | hgbot | Resolution | open => duplicate |
Copyright © 2000 - 2009 MantisBT Group |