Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051898Retail ModulesDiscounts and Promotionspublic2023-03-17 10:252023-10-10 16:52
noemieroussel 
radhakrishnan 
highmajoralways
closedfixed 
5
 
RR23Q3 
No
0051898: free product / gift reminder is not applied if the gifted product has a price 0
In free product per total amount discoumt, when free product =0€, the gift reminder is not applied

see video: https://drive.google.com/file/d/1dzzo2slmJ643i3S3zFR6mNUEqyVx3aih/view?usp=sharing [^]

Go to the backoffice

Go to the Discounts and promotions window

Create a new record with discount type=Free product per total amount

Enter the required fields (Name, starting date/ending date)

Add a free product in the "Free product" sbutab

Amount=100

POS Application method= Automatic, with gift reminder notification checked.

In "Product", subtab "Price", set the product price to 0.

Try to trigger the promo in the POS by adding products for amount>100.

See that the promo is not displayed.

Put the original price to the gift. Refresh POS.

Try again to trigger the promo in the POS by adding products for amount>100.

See that the promo is display
Whatever the price of the gift, the promo should be trigger.
No tags attached.
Issue History
2023-03-17 10:25noemierousselNew Issue
2023-03-17 10:25noemierousselAssigned To => Retail
2023-03-17 10:25noemierousselTriggers an Emergency Pack => No
2023-03-20 12:23radhakrishnanAssigned ToRetail => radhakrishnan
2023-03-20 12:23radhakrishnanStatusnew => scheduled
2023-03-22 11:15hgbotNote Added: 0147829
2023-03-31 15:01hgbotNote Added: 0148163
2023-03-31 15:01hgbotResolutionopen => fixed
2023-03-31 15:01hgbotStatusscheduled => closed
2023-03-31 15:01hgbotFixed in Version => RR23Q3
2023-03-31 15:01hgbotNote Added: 0148164
2023-07-11 03:54Mike34Note Added: 0152294
2023-10-10 16:52westjoanNote Added: 0155750

Notes
(0147829)
hgbot   
2023-03-22 11:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/97 [^]
(0148163)
hgbot   
2023-03-31 15:01   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/97 [^]
(0148164)
hgbot   
2023-03-31 15:01   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 5299ac21ccf1c77f7268ecf669eab5ceb6ca14b9
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 31-03-2023 13:00:50
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/5299ac21ccf1c77f7268ecf669eab5ceb6ca14b9 [^]

Fixed ISSUE-51898: Free product with price 0 should allow in discounts calculation

---
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
---
(0152294)
Mike34   
2023-07-11 03:54   
Problem solved, merge request approved, https://uno-online.co/ [^] awesome
(0155750)
westjoan   
2023-10-10 16:52   
New capabilities that would encourage a greater number of people to use the product at https://geometrydash-free.com [^]