Openbravo Issue Tracking System - POS2
View Issue Details
0053949POS2POSpublic2023-11-15 16:402024-01-03 16:42
jfvaringot 
SABARINATH P 
normalmajoralways
closedfixed 
5
 
 
No
0053949: POS2 - Promotion Free Products per Total Amount - Does not work when manually changing the amount of item
REPRODUCED ON LIVEBUILDS -> POS : https://livebuilds.openbravo.com/context/retail_pos2_pgsql/web/pos/?terminal=VBS-2 [^]

When I manually change the price of an item, and that the defined limit to have a free product is reached, the promotion is not applied, while it's working when I add several product to reach the same limit.

Video : https://drive.google.com/file/d/1YvRy5nb0TADk_Yb-ewqSjmHRKDlWyEHb/view?usp=sharing [^]
On Backend : Promotion Type : Free Products per Total Amount
a. For a group of product : Backpacks & Travel
b. Limit : 100€
c. 1 free product : Ceiling Lamp


On POS :
a. Add several item from the defined group of product to reach the limit
b. Pay -> The window proposing the free product is displayed, you can add the free product


On POS :
a. Add 1 item from the defined group
b. Change the price manually to reach the limit
c. Pay -> only the payment window is displayed. You cannot add the free product.
No tags attached.
7z Livebuilds - Issue with Free Product Promotion.7z (1,674,260) 2023-11-15 16:40
https://issues.openbravo.com/file_download.php?file_id=19157&type=bug
Issue History
2023-11-15 16:40jfvaringotNew Issue
2023-11-15 16:40jfvaringotAssigned To => Retail
2023-11-15 16:40jfvaringotFile Added: Livebuilds - Issue with Free Product Promotion.7z
2023-11-15 16:40jfvaringotTriggers an Emergency Pack => No
2023-11-15 16:48javietxeIssue Monitored: javietxe
2023-11-20 13:38SABARINATH PAssigned ToRetail => SABARINATH P
2023-11-21 12:46SABARINATH PStatusnew => scheduled
2023-12-06 05:47hgbotNote Added: 0157978
2024-01-03 16:42hgbotResolutionopen => fixed
2024-01-03 16:42hgbotStatusscheduled => closed
2024-01-03 16:42hgbotFixed in Version => RR24Q1
2024-01-03 16:42hgbotNote Added: 0158833
2024-01-03 16:42hgbotNote Added: 0158834

Notes
(0157978)
hgbot   
2023-12-06 05:47   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/129 [^]
(0158833)
hgbot   
2024-01-03 16:42   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/129 [^]
(0158834)
hgbot   
2024-01-03 16:42   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: a4a7c376b5d845a81cac5dc6b1ecae8eaaa5a544
Author: sabarinath palanisamy <sabarinath.palanisamy.ext@openbravo.com>
Date: 03-01-2024 15:42:50
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/a4a7c376b5d845a81cac5dc6b1ecae8eaaa5a544 [^]

Fixed ISSUE-53949: Updated price by gross unit price to display promotion free products when price modified.

---
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountByTotalFreeItemsTest.java
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/rules/by-total-free-item-discount.js
---