Openbravo Issue Tracking System - POS2
View Issue Details
0053980POS2POSpublic2023-11-20 16:422024-01-18 12:57
jfvaringot 
SABARINATH P 
highmajoralways
closedfixed 
5
 
 
approved
Gold
No
0053980: POS2 - Issue on Promotion with type "Price Adjustment" - no promotion applied with min and max quantities are filled
Issue on POOS2 REACT
Tested and reproduced on livebuilds : https://livebuilds.openbravo.com/context/retail_pos2_pgsql/security/Login [^]
https://livebuilds.openbravo.com/context/retail_pos2_pgsql/web/pos/?terminal=VBS-2 [^]

On promotions with "Price adjustment" type, when min and max quantites are both filled, no promotion is applied at all on POS2.
ON BO :
1. Create a promotion with "Price adjustement" type.
2. Apply promotion to a category product
3. Fill "Discount %"
4. Fill Min. Quantity, then save.

On POS2 :
1. Add items from the previously chosen product group
2. When the quantity is >= Min. quantity, the promotion is applied.

ON BO :
1. Select the previously configured promotion
2. Fill the Max. Quantity
3. Save
4.Force the refresh master data for the POS.

On POS2 :
1. Add items from the previously chosen product group
2. When the quantity is >= Min. quantity, nothing happens.
No tags attached.
Issue History
2023-11-20 16:42jfvaringotNew Issue
2023-11-20 16:42jfvaringotAssigned To => Retail
2023-11-20 16:42jfvaringotTriggers an Emergency Pack => No
2023-11-20 18:01javietxeIssue Monitored: javietxe
2023-11-23 13:30javietxeOBNetwork customer => Gold
2023-11-24 09:57SABARINATH PAssigned ToRetail => SABARINATH P
2023-11-27 06:52SABARINATH PStatusnew => scheduled
2023-11-27 08:20hgbotMerge Request Status => open
2023-11-27 08:20hgbotNote Added: 0157653
2024-01-18 12:56hgbotMerge Request Statusopen => approved
2024-01-18 12:57hgbotNote Added: 0159467
2024-01-18 12:57hgbotResolutionopen => fixed
2024-01-18 12:57hgbotStatusscheduled => closed
2024-01-18 12:57hgbotFixed in Version => RR24Q2
2024-01-18 12:57hgbotNote Added: 0159468

Notes
(0157653)
hgbot   
2023-11-27 08:20   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/126 [^]
(0159467)
hgbot   
2024-01-18 12:57   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/126 [^]
(0159468)
hgbot   
2024-01-18 12:57   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: edc5aa6285ef99e4316dc1dde7abfbf07b52cbfd
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 17-01-2024 18:54:13
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/edc5aa6285ef99e4316dc1dde7abfbf07b52cbfd [^]

Fixed ISSUE-53980: Changed the way of applying discounts when the max qty given.

---
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountPriceAdjusmentTest.java
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/rules/price-adjustment-discount.js
---