Openbravo Issue Tracking System - Retail Modules
View Issue Details
0057508Retail ModulesDiscounts and Promotionspublic2024-12-19 15:462025-01-23 15:32
ffourcade 
Retail 
normalmajoralways
closedno change required 
5
pi 
 
guillermogil
No
115586
No
0057508: When Cancel and Replace a paid order with a discount coupon, the coupon is not applied to the new order.
Current behaviour:
Having a discount of type 'Discount per total amount' that uses coupon codes configured to be used only 1 time, when we cancel and replace a closed order that has a discount coupon applied, the coupon is removed and not applied to the new order.

Expected behaviour:
When cancel and replace the order (i.e. to change the business partner), the discount should be automatically applied to the new order, or the coupon should be set as available to be applied again to the new order manually.
1- In back office, configure a discount and promotion of type 'Discount per total amount' with any amount, Uses coupon codes = 'Y' and is OTF Coupon = 'Y' (make sure it is set as active)
2- in the Coupon tab, create a new coupon with number of uses = 'N Uses' and Number of uses limit = 1
3- In the web pos, make a sale of any product and apply the coupon.
4- In the web pos, open the receipt (note that the discount is still applied)
5- In the web pos menu, click the Cancel and Replace option.
6- Note that the discount is removed from the new order and it is not possible to apply it again.
No tags attached.
related to defect 0054775 closed jorgewederago Cancel and Replace a Layaway with coupons 
related to design defect 0056087pi closed Retail Coupons disappear when you perform a Cancel and Replace 
? Open_receipt_with_coupon_applied.webp (57,166) 2024-12-19 15:47
https://issues.openbravo.com/file_download.php?file_id=20662&type=bug
? Impossible_to_apply_coupon_to_new_order.webp (36,896) 2024-12-19 15:47
https://issues.openbravo.com/file_download.php?file_id=20663&type=bug
? Coupon_disappears_when_cancelAndReplace.webp (58,444) 2024-12-19 15:48
https://issues.openbravo.com/file_download.php?file_id=20664&type=bug
Issue History
2024-12-19 15:46ffourcadeNew Issue
2024-12-19 15:46ffourcadeAssigned To => Retail
2024-12-19 15:46ffourcadeOBNetwork customer => No
2024-12-19 15:46ffourcadeSupport ticket => 115586
2024-12-19 15:46ffourcadeTriggers an Emergency Pack => No
2024-12-19 15:47ffourcadeFile Added: Open_receipt_with_coupon_applied.webp
2024-12-19 15:47ffourcadeFile Added: Impossible_to_apply_coupon_to_new_order.webp
2024-12-19 15:48ffourcadeFile Added: Coupon_disappears_when_cancelAndReplace.webp
2025-01-23 15:32guillermogilReview Assigned To => guillermogil
2025-01-23 15:32guillermogilNote Added: 0174603
2025-01-23 15:32guillermogilStatusnew => closed
2025-01-23 15:32guillermogilResolutionopen => no change required
2025-01-23 15:32guillermogilRelationship addedrelated to 0054775
2025-01-23 15:32guillermogilRelationship addedrelated to 0056087

Notes
(0174603)
guillermogil   
2025-01-23 15:32   
This is the expected behavior. Anything new should be analyzed with Product Management and if approved a new FR would be developed