Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041396Retail ModulesDiscounts and Promotionspublic2019-07-18 12:512019-09-06 22:04
Leyre 
rqueralta 
urgentmajoralways
closedfixed 
5
 
RR19Q4 
jorge-garcia
No
0041396: Manual promotion for only one of two products, not correctly applied.
Manual promotion for only one of two products
Web POS:
1. Add a product.
2. Increase the quantity of the product = 2
3. Select the product and 'Split'
Now, there are two lines in the POS of the same product.
4. Try to add a discount only for one of the lines.
*** The discount is applied for all the lines.
It worked fine until 18Q4 (included) version.
No tags attached.
Issue History
2019-07-18 12:51LeyreNew Issue
2019-07-18 12:51LeyreAssigned To => Retail
2019-07-18 12:51LeyreResolution time => 1563832800
2019-07-18 12:51LeyreTriggers an Emergency Pack => No
2019-07-29 16:55rqueraltaAssigned ToRetail => rqueralta
2019-07-29 17:05rqueraltaStatusnew => scheduled
2019-08-12 02:35hgbotCheckin
2019-08-12 02:35hgbotNote Added: 0113937
2019-08-12 02:35hgbotStatusscheduled => resolved
2019-08-12 02:35hgbotResolutionopen => fixed
2019-08-12 02:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/85ac47f10ec2380e87948453687ff3895837a7cf [^]
2019-08-12 12:31jorge-garciaReview Assigned To => jorge-garcia
2019-08-12 12:31jorge-garciaNote Added: 0113944
2019-08-12 12:31jorge-garciaStatusresolved => closed
2019-08-12 12:31jorge-garciaFixed in Version => RR19Q4
2019-09-06 22:04hgbotCheckin
2019-09-06 22:04hgbotNote Added: 0114444

Notes
(0113937)
hgbot   
2019-08-12 02:35   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 85ac47f10ec2380e87948453687ff3895837a7cf
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Wed Jul 31 16:30:58 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/85ac47f10ec2380e87948453687ff3895837a7cf [^]

Fixed issue 41396: Manual promotion for only one of two products, not correctly
applied.

- if manual promotion was applied we need not apply all promotions, to avoid
add the same promotions to the all lines of this product.

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0113944)
jorge-garcia   
2019-08-12 12:31   
Code reviewed and tested
(0114444)
hgbot   
2019-09-06 22:04   
Repository: tools/automation/pi-mobile
Changeset: c142d0a423ab0372fb4ae963b838520a35f23583
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Fri Sep 06 16:02:42 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/c142d0a423ab0372fb4ae963b838520a35f23583 [^]

Related to issue 41396: Added automated test

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I41396_VerifyDiscountAppliedToOneLineAfterSplit.java
---