Openbravo Issue Tracking System - POS2
View Issue Details
0052006POS2POSpublic2023-03-29 15:462023-07-06 13:45
noemieroussel 
sreehari 
highmajoralways
closedfixed 
5
 
23Q4 
No
0052006: [Promos] - Free products per total amount - Order discount: free product quantities is doubled
See video: https://drive.google.com/file/d/1vJNMFsCc9166huWhvcp6HFnflxYRm5yP/view?usp=sharing [^]

For Free product per total amount promo with Optional application method, the gift quantity is double if selected in both Order discount and Payment.
1. In the backoffice, create a promotion in the Window "Discounts and promotion" :

-Type: Free product per total amount
-Amount=100
-Gift reminder notification=Y
Application method: Optional

2. In the POS, add products for >100€.

3. Click on the "Order discount" and add the free product per total amount discount --> See that the gift is added to the ticket for 0€.

4. Go to the payment and see that the free product per total amount discount is already selected.

5. Click on "Finish" and see that a gift is added with its original price.

6. Delete the two gifts from the ticket.

7. Click on the "Order discount" and add the free product per total amount discount --> See that the gift is added to the ticket for 0€.

8. Go to the payment and remove the previously selected discount free product per total amount discount.

9. Click on finish and see that the gift is at his original price and not free.

Either the gift is selected on order discount or payment, it should be applied to the ticket only once.

No tags attached.
related to defect 0052807 closed sreehari [Promos] - Free products per total amount - Order discount: Free product qty increases when new discount is applied 
txt Note.txt (192) 2023-06-21 09:54
https://issues.openbravo.com/file_download.php?file_id=18669&type=bug
Issue History
2023-03-29 15:46noemierousselNew Issue
2023-03-29 15:46noemierousselAssigned To => Retail
2023-03-29 15:46noemierousselTriggers an Emergency Pack => No
2023-05-26 06:56sreehariAssigned ToRetail => sreehari
2023-05-30 07:07sreehariStatusnew => scheduled
2023-06-02 10:01noemierousselDescription Updatedbug_revision_view_page.php?rev_id=26203#r26203
2023-06-02 10:01noemierousselSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26205#r26205
2023-06-15 14:42hgbotNote Added: 0151213
2023-06-21 09:34sreehariRelationship addedrelated to 0052807
2023-06-21 09:54sreehariFile Added: Note.txt
2023-07-06 13:45hgbotNote Added: 0152162
2023-07-06 13:45hgbotResolutionopen => fixed
2023-07-06 13:45hgbotStatusscheduled => closed
2023-07-06 13:45hgbotFixed in Version => 23Q4
2023-07-06 13:45hgbotNote Added: 0152163

Notes
(0151213)
hgbot   
2023-06-15 14:42   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1900 [^]
(0152162)
hgbot   
2023-07-06 13:45   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1900 [^]
(0152163)
hgbot   
2023-07-06 13:45   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 09a3af75e5f4aa5f67595cbac8e4a9bb52fd2ede
Author: Sreehari Venkataraman <sreehari@qualiantech.com>
Date: 06-07-2023 11:44:45
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/09a3af75e5f4aa5f67595cbac8e4a9bb52fd2ede [^]

Fixes ISSUE-52006: Fixed Quantity addition issue when Finish button clicked
* removing productsToBeAdded once the giftproducts are calculated

---
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/SetFeaturedDiscountsIntoTicket.js
---