Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036851Retail ModulesDiscounts and Promotionspublic2017-09-14 08:352018-02-16 17:15
lmonreal 
rqueralta 
normalmajoralways
closedfixed 
5
 
RR18Q1 
jorge-garcia
No
0036851: Pack discount is not working with Non-Grouped products
Pack discount is not working with Non-Grouped products

1. Login in webpos
2. There is a pack discount created that needs 2 units of Product A and 1 unit of product B. They are grouped products
3. Add them to ticket and pack is applied
4. Go to backend and select product A (the one that needs 2 units for Pack) and set it to Non-Grouped
5. Refresh, delete ticket and repeat ticket of the pack again: In this case pack is NOT applied
No tags attached.
png pack not applied.PNG (100,304) 2017-09-14 08:44
https://issues.openbravo.com/file_download.php?file_id=11063&type=bug
png

png pack applied.PNG (137,237) 2017-09-14 08:44
https://issues.openbravo.com/file_download.php?file_id=11064&type=bug
png

diff patch_issue_36851.diff (4,608) 2017-10-02 17:44
https://issues.openbravo.com/file_download.php?file_id=11130&type=bug
Issue History
2017-09-14 08:35lmonrealNew Issue
2017-09-14 08:35lmonrealAssigned To => Retail
2017-09-14 08:35lmonrealTriggers an Emergency Pack => No
2017-09-14 08:44lmonrealFile Added: pack not applied.PNG
2017-09-14 08:44lmonrealFile Added: pack applied.PNG
2017-09-21 23:43rqueraltaAssigned ToRetail => rqueralta
2017-10-02 17:44rqueraltaFile Added: patch_issue_36851.diff
2017-10-11 15:16hgbotCheckin
2017-10-11 15:16hgbotNote Added: 0099863
2017-10-11 15:16hgbotStatusnew => resolved
2017-10-11 15:16hgbotResolutionopen => fixed
2017-10-11 15:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/c1cdfbc0e29d1642bd10e7c9acc0569132e74dfd [^]
2017-11-28 11:44jorge-garciaReview Assigned To => jorge-garcia
2017-11-28 11:44jorge-garciaNote Added: 0100781
2017-11-28 11:44jorge-garciaStatusresolved => closed
2017-11-28 11:44jorge-garciaFixed in Version => RR18Q1
2017-12-12 14:35hgbotCheckin
2017-12-12 14:35hgbotNote Added: 0100990
2017-12-13 15:10hgbotCheckin
2017-12-13 15:10hgbotNote Added: 0101014
2018-02-16 17:15hgbotCheckin
2018-02-16 17:15hgbotNote Added: 0102467

Notes
(0099863)
hgbot   
2017-10-11 15:16   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: c1cdfbc0e29d1642bd10e7c9acc0569132e74dfd
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Wed Sep 27 16:39:28 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/c1cdfbc0e29d1642bd10e7c9acc0569132e74dfd [^]

Fixed issue 36851: Pack discount is not working with Non-Grouped products

---
M web/org.openbravo.retail.discounts/js/promotion-pack.js
---
(0100781)
jorge-garcia   
2017-11-28 11:44   
Fix reviewed and tested
(0100990)
hgbot   
2017-12-12 14:35   
Repository: tools/automation/pi-mobile
Changeset: 8e7a9ec78a0d10ffdf0b54052365cb57aa3823d7
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Wed Oct 11 09:03:07 2017 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/8e7a9ec78a0d10ffdf0b54052365cb57aa3823d7 [^]

Verifies issue 36851: Pack discount is not working with Non-Grouped products

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I36851_PackDiscountIsNotWorkingWithNonGroupedProducts.java
---
(0101014)
hgbot   
2017-12-13 15:10   
Repository: tools/automation/pi-mobile
Changeset: 132e61e6c2a8a3dedf33c7acc23ea59d09be5a49
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Wed Dec 13 09:07:57 2017 -0500
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/132e61e6c2a8a3dedf33c7acc23ea59d09be5a49 [^]

Verifies issue 36851: Pack discount is not working with Non-Grouped products

-Backed out changeset: 8e7a9ec78a0d

---
R src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I36851_PackDiscountIsNotWorkingWithNonGroupedProducts.java
---
(0102467)
hgbot   
2018-02-16 17:15   
Repository: tools/automation/pi-mobile
Changeset: 011024cc26a77b4032868e73045d315d658cda2d
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Thu Feb 15 17:39:12 2018 -0500
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/011024cc26a77b4032868e73045d315d658cda2d [^]

Verifies issue 36851: Added automated test
"I36851_PackDiscountIsNotWorkingWithNonGroupedProducts"

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