Openbravo Issue Tracking System - POS2
View Issue Details
0050195POS2POSpublic2022-09-07 17:332022-09-13 17:38
aennih 
ranjith_qualiantech_com 
normalminorhave not tried
closedfixed 
5
 
22Q4 
No
0050195: Gift discount block the finalization of the payment
Hi there,

When a gift discount is triggered and added to the ticket.
The payment can't be finalized.

Please find below the screenshot
In the BO:
- Create a buy X get Y gift discount
- Choose a product A with quantity 1 as a trigger
- Choose a product B with a quantity 1 to be a gift
- Select Gift reminder notification boolean
- Application Method (Automatic)

In the POS2:
- Select the product A
- A pop-up shows up
- Select the gift product
- finalize the payment:

Result:
The payment is not finalized
No tags attached.
png 2022-09-07_17h19_09.png (95,662) 2022-09-07 17:33
https://issues.openbravo.com/file_download.php?file_id=17498&type=bug
png
Issue History
2022-09-07 17:33aennihNew Issue
2022-09-07 17:33aennihAssigned To => Retail
2022-09-07 17:33aennihFile Added: 2022-09-07_17h19_09.png
2022-09-07 17:33aennihTriggers an Emergency Pack => No
2022-09-08 18:45rafademiguelIssue Monitored: rafademiguel
2022-09-12 07:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-09-12 07:43ranjith_qualiantech_comStatusnew => scheduled
2022-09-13 07:26hgbotNote Added: 0141034
2022-09-13 17:38hgbotResolutionopen => fixed
2022-09-13 17:38hgbotStatusscheduled => closed
2022-09-13 17:38hgbotNote Added: 0141075
2022-09-13 17:38hgbotFixed in Version => 22Q4
2022-09-13 17:38hgbotNote Added: 0141076

Notes
(0141034)
hgbot   
2022-09-13 07:26   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1198 [^]
(0141075)
hgbot   
2022-09-13 17:38   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1198 [^]
(0141076)
hgbot   
2022-09-13 17:38   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: d83797bf939cc7775dd86d74f8b79903eaf5d413
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 13-09-2022 15:38:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/d83797bf939cc7775dd86d74f8b79903eaf5d413 [^]

Fixed ISSUE-50195: Service Product should not be added through featured discount
* Service Product should be added manually based on the linked products

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.pos2/src/components/Discounts/shared/OptionalDiscountsUtils.js
---