Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041146Retail ModulesWeb POSpublic2019-06-21 10:092019-06-28 12:02
xabiermerino 
umartirena 
urgentmajoralways
closedfixed 
5
 
RR19Q3 
marvintm
No
0041146: A Variable OTF Coupon is calculated without take into account the promotion of the ticket
If we have a ticket of 90 (10€ of discount) the variable OTF Coupon is generated based on 100€ instead of 90€
1.- Configure a Variable OTF Coupon
2.- Create a ticket that will generate this OTF Coupon
3.- This ticket has to have a promotion
4.- Realize that the amount of the OTF Coupon is calculated without take into account the promotion
Patch attached
No tags attached.
diff fixOTFGrossLine_v1.diff (1,873) 2019-06-21 10:09
https://issues.openbravo.com/file_download.php?file_id=13044&type=bug
Issue History
2019-06-21 10:09xabiermerinoNew Issue
2019-06-21 10:09xabiermerinoAssigned To => Retail
2019-06-21 10:09xabiermerinoFile Added: fixOTFGrossLine_v1.diff
2019-06-21 10:09xabiermerinoResolution time => 1561932000
2019-06-21 10:09xabiermerinoTriggers an Emergency Pack => No
2019-06-25 14:04hgbotCheckin
2019-06-25 14:04hgbotNote Added: 0113008
2019-06-25 14:04hgbotStatusnew => resolved
2019-06-25 14:04hgbotResolutionopen => fixed
2019-06-25 14:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.coupons.otf/rev/3aabd535034958f5525884c42ba601ec3d55ca48 [^]
2019-06-25 19:38marvintmAssigned ToRetail => umartirena
2019-06-28 12:02marvintmReview Assigned To => marvintm
2019-06-28 12:02marvintmStatusresolved => closed
2019-06-28 12:02marvintmFixed in Version => RR19Q3

Notes
(0113008)
hgbot   
2019-06-25 14:04   
Repository: erp/pmods/org.openbravo.retail.discounts.coupons.otf
Changeset: 3aabd535034958f5525884c42ba601ec3d55ca48
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Tue Jun 25 14:04:41 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.coupons.otf/rev/3aabd535034958f5525884c42ba601ec3d55ca48 [^]

Fixed issue 41146: Calculate Variable Coupon Amount based on Ticket Gross after discounts

---
M web/org.openbravo.retail.discounts.coupons.otf/js/utils.js
---