Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040678Retail ModulesWeb POSpublic2019-04-25 09:462019-05-06 18:19
xabiermerino 
rqueralta 
urgentmajoralways
closedfixed 
5
 
 
migueldejuana
No
0040678: Discount per total amount are not applied properly
Configuration:
Promo 1:
Discount per total amount
Use coupon
Total receipt: 0
Amount: 3
Proority: 400
Appliy next discount: Y

Promo 1:
Discount per total amount
Use coupon
Total receipt: 10
Amount: 5
Proority: 5000
Appliy next discount: N
Create a ticket of > 50€
Introduce the coupon of the promo 1
relize that the promo is applied
Introduce coupon of the promo 2
Realize that the promo is not applied
No tags attached.
has duplicate defect 0040697 closed rqueralta Only applying one “Discount per Total Amount” coupon even when there are more 
Issue History
2019-04-25 09:46xabiermerinoNew Issue
2019-04-25 09:46xabiermerinoAssigned To => Retail
2019-04-25 09:46xabiermerinoResolution time => 1556402400
2019-04-25 09:46xabiermerinoTriggers an Emergency Pack => No
2019-04-25 14:59rqueraltaAssigned ToRetail => rqueralta
2019-04-25 14:59rqueraltaStatusnew => scheduled
2019-04-30 01:16hgbotCheckin
2019-04-30 01:16hgbotNote Added: 0111377
2019-04-30 01:16hgbotStatusscheduled => resolved
2019-04-30 01:16hgbotResolutionopen => fixed
2019-04-30 01:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/a984a7d99b4c17a64fc849afba6fc208a711f0f1 [^]
2019-05-06 15:37migueldejuanaReview Assigned To => migueldejuana
2019-05-06 15:37migueldejuanaNote Added: 0111502
2019-05-06 15:37migueldejuanaStatusresolved => closed
2019-05-06 18:19hgbotCheckin
2019-05-06 18:19hgbotNote Added: 0111514
2019-05-06 19:24marvintmRelationship addedhas duplicate 0040697

Notes
(0111377)
hgbot   
2019-04-30 01:16   
Repository: erp/pmods/org.openbravo.retail.discounts.bytotal
Changeset: a984a7d99b4c17a64fc849afba6fc208a711f0f1
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Mon Apr 29 19:14:37 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/a984a7d99b4c17a64fc849afba6fc208a711f0f1 [^]

Fixed issue 40678: Discount per total amount are not applied properly

- If the discount rule has obdiscpIscoupon on true, was avoided to set
applyNext on false

---
M web/org.openbravo.retail.discounts.bytotal/js/promotion-by-total-utils.js
---
(0111502)
migueldejuana   
2019-05-06 15:37   
Tested and reviewed
(0111514)
hgbot   
2019-05-06 18:19   
Repository: tools/automation/pi-mobile
Changeset: 85dc5a9654e6323e24715695beae86a607b59565
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Thu May 02 15:54:18 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/85dc5a9654e6323e24715695beae86a607b59565 [^]

Related to issue 40678: added automated test

---
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bytotal/I40678_VerifyDiscountPerTotalAmntIsCorrectlyApplied.java
---