Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036781Retail ModulesDiscounts and Promotionspublic2017-09-04 13:272017-10-17 11:55
nataliag 
rqueralta 
normalmajoralways
closedno change required 
5
 
RR18Q1 
marvintm
No
0036781: Combo Fix price discount is not working correctly when you add the same combo twice in the same ticket.
Combo Fix price discount is not working correctly when you add same combo twice in the same ticket.
1- Go to "Discount and promotions" window and create a new discount of type "Combo Fix price". Set a starting date, the rest of fields can be "All excluding defined" and the "Combo fix price" for example 20.
2- Define 3 families: A (quantity 2), B(quantity 2) and C(quantity 1):
Products in family A= Adhesive body Warmers,Alpine Poles,
Products in family B= Base camp duffel 70 L
Products in family C= Basecamp lantern,Basecamp lantern with legs.
3- Now, go to POS terminal, create a new ticket and add this products:
 1 Adhesive body warmer,
 1 Alpine poles
 2 Base camp duffel 70L
 1 Basecamp lantern.
The combo discount is applied and the price is 20. This is correct
4- In this same ticket we want to add another combo but using the other basecamp lantern so we continue adding to the ticket:
 1 Adhesive body warmer,
 1 Alpine poles
 2 Base camp duffel 70L
 1 Basecamp lantern with legs. Now again the combo should be applied and the price should be 40 but instead that, the total is 207.36. The price of the combo is not applied although the discount appears in the lantern with legs. If we select the base camp duffel product and we split lines as 2 and 2 instead 4, the discount is applied and the total price change to 40. Both combos are then detected correctly. This also happens if the product is marked as non grouped.
No tags attached.
related to defect 0036645 closed jorge-garcia combo price is not correct: wrong total amount is calculated 
Issue History
2017-09-04 13:27nataliagNew Issue
2017-09-04 13:27nataliagAssigned To => Retail
2017-09-04 13:27nataliagResolution time => 1506290400
2017-09-04 13:27nataliagTriggers an Emergency Pack => No
2017-09-07 15:39rqueraltaAssigned ToRetail => rqueralta
2017-09-12 16:47hgbotCheckin
2017-09-12 16:47hgbotNote Added: 0098993
2017-09-12 16:47hgbotStatusnew => resolved
2017-09-12 16:47hgbotResolutionopen => fixed
2017-09-12 16:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/aab2d0053ae992f690bf9cd5dd60f86ae4345993 [^]
2017-09-13 20:07hgbotCheckin
2017-09-13 20:07hgbotNote Added: 0099015
2017-09-15 15:45hgbotCheckin
2017-09-15 15:45hgbotNote Added: 0099088
2017-09-15 15:45hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/aab2d0053ae992f690bf9cd5dd60f86ae4345993 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/88773a9a0d79d5d2f9c47264aa60bcacc0fa844b [^]
2017-09-18 14:42hgbotCheckin
2017-09-18 14:42hgbotNote Added: 0099118
2017-09-18 14:43hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/88773a9a0d79d5d2f9c47264aa60bcacc0fa844b [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/3bdc761a27bc2b829f42eadc23a8d55f61fe914f [^]
2017-09-18 23:34hgbotCheckin
2017-09-18 23:34hgbotNote Added: 0099133
2017-09-18 23:34hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/3bdc761a27bc2b829f42eadc23a8d55f61fe914f [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/538778f1605937f6b531b71a4fd4971c18c0ac15 [^]
2017-09-19 15:55hgbotCheckin
2017-09-19 15:55hgbotNote Added: 0099148
2017-09-22 11:09ngarciaIssue Monitored: ngarcia
2017-09-22 14:19marvintmNote Added: 0099491
2017-09-22 14:19marvintmStatusresolved => new
2017-09-22 14:19marvintmResolutionfixed => open
2017-09-22 19:43hgbotCheckin
2017-09-22 19:43hgbotNote Added: 0099503
2017-09-22 19:47hgbotCheckin
2017-09-22 19:47hgbotNote Added: 0099504
2017-10-03 16:45hgbotCheckin
2017-10-03 16:45hgbotNote Added: 0099730
2017-10-04 09:28migueldejuanaNote Added: 0099751
2017-10-04 09:30hgbotCheckin
2017-10-04 09:30hgbotNote Added: 0099752
2017-10-09 10:48marvintmReview Assigned To => marvintm
2017-10-09 10:48marvintmNote Added: 0099823
2017-10-09 10:48marvintmStatusnew => closed
2017-10-09 10:48marvintmResolutionopen => no change required
2017-10-09 10:48marvintmFixed in Version => RR18Q1
2017-10-17 11:55ngarciaRelationship addedrelated to 0036645

Notes
(0098993)
hgbot   
2017-09-12 16:47   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: aab2d0053ae992f690bf9cd5dd60f86ae4345993
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Sep 11 19:50:41 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/aab2d0053ae992f690bf9cd5dd60f86ae4345993 [^]

Fixed issue 36781: Combo Fix price discount is not working correctly when you
add the same combo twice in the same ticket

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---
(0099015)
hgbot   
2017-09-13 20:07   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 85db74bf8d8bcc124583eef465bd5ccde083f7b9
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Wed Sep 13 14:02:52 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/85db74bf8d8bcc124583eef465bd5ccde083f7b9 [^]

Related to issue 36781: Combo Fix price discount is not working correctly when
you add the same combo twice in the same ticket

- Backed out changeset: aab2d0053ae9

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---
(0099088)
hgbot   
2017-09-15 15:45   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 88773a9a0d79d5d2f9c47264aa60bcacc0fa844b
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Sep 11 19:50:41 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/88773a9a0d79d5d2f9c47264aa60bcacc0fa844b [^]

Fixed issue 36781: Combo Fix price discount is not working correctly when you
add the same combo twice in the same ticket

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---
(0099118)
hgbot   
2017-09-18 14:42   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 3bdc761a27bc2b829f42eadc23a8d55f61fe914f
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Sep 18 08:40:07 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/3bdc761a27bc2b829f42eadc23a8d55f61fe914f [^]

Fixed issue 36781: Combo Fix price discount is not working correctly when you
add the same combo twice in the same ticket

- Backed out changeset: 88773a9a0d79

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---
(0099133)
hgbot   
2017-09-18 23:34   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 538778f1605937f6b531b71a4fd4971c18c0ac15
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Sep 18 16:33:30 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/538778f1605937f6b531b71a4fd4971c18c0ac15 [^]

Fixed issue 36781: Combo Fix price discount is not working correctly when you
add the same combo twice in the same ticket

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---
(0099148)
hgbot   
2017-09-19 15:55   
Repository: tools/automation/pi-mobile
Changeset: 1bd921a18fd9db3878601eab2fa76fe4434d51c4
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Sep 18 16:38:34 2017 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/1bd921a18fd9db3878601eab2fa76fe4434d51c4 [^]

Verifies issue 36781: Combo Fix price discount is not working correctly when you
add the same combo twice in the same ticket.

---
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_combo/I36781_VerifyComboFixPriceTwiceInTheSameTicket.java
---
(0099491)
marvintm   
2017-09-22 14:19   
The current fix doesn't solve the case as described. The combo is applied twice if the products selected are exactly the same, but once you change a product for one of the families, then there is only one instance of the combo applied, and the second set of products do not have any discount applied.
(0099503)
hgbot   
2017-09-22 19:43   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 3a8771c78473c827e70327c631b4369e1340aac3
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Fri Sep 22 13:21:39 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/3a8771c78473c827e70327c631b4369e1340aac3 [^]

Related issue 36781: Combo Fix price discount is not working correctly when you
add the same combo twice in the same ticket

- Backed out changeset: 538778f16059

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---
(0099504)
hgbot   
2017-09-22 19:47   
Repository: tools/automation/pi-mobile
Changeset: 111d74a56c6c54f7b727db6aa7a857935daae6d1
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Fri Sep 22 13:25:26 2017 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/111d74a56c6c54f7b727db6aa7a857935daae6d1 [^]

Related to issue 36781: Combo Fix price discount is not working correctly when
you add the same combo twice in the same ticket.

- Backed out changeset: 1bd921a18fd9

---
R src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_combo/I36781_VerifyComboFixPriceTwiceInTheSameTicket.java
---
(0099730)
hgbot   
2017-10-03 16:45   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 2e8b2dfdf0c005cf81044b72192b77aa835c1048
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Sep 25 22:41:10 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/2e8b2dfdf0c005cf81044b72192b77aa835c1048 [^]

Related issue 36781: Combo Fix price discount is not working correctly when you
add the same combo twice in the same ticket

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---
(0099751)
migueldejuana   
2017-10-04 09:28   
Last change breaks a test:

https://ci.openbravo.com/view/retail-qa/job/ret-qa-modules-pgsql-suite1/lastCompletedBuild/testReport/org.openbravo.test.mobile.retail.extmodules.selenium.tests.discounts_combo/I34809_WrongCalculationOfComboDependingSequence/test/ [^]

https://ci.openbravo.com/view/retail-qa/job/ret-qa-modules-pgsql-suite1/lastSuccessfulBuild/artifact/SANDBOX/automation/pi-mobile/last-results/ret-qa-modules-pgsql-suite1/screenshots/23%3A52%3A40%20FAILED%3A%20I34809_WrongCalculationOfComboDependingSequence.png [^]
(0099752)
hgbot   
2017-10-04 09:30   
Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 51ef92ce0dfa21eb33ff1012405b31e9b1aeae3e
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Oct 04 09:14:38 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/51ef92ce0dfa21eb33ff1012405b31e9b1aeae3e [^]

Related issue 36781: Combo Fix price discount is not working correctly when you
add the same combo twice in the same ticket

It breaks I34809_WrongCalculationOfComboDependingSequence test

Backed out changeset 2e8b2dfdf0c0

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---
(0099823)
marvintm   
2017-10-09 10:48   
Change for issue 36645 has indirectly fixed this issue also.