Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0036781 | Retail Modules | Discounts and Promotions | public | 2017-09-04 13:27 | 2017-10-17 11:55 |
|
Reporter | nataliag | |
Assigned To | rqueralta | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR18Q1 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | OBPS |
Support ticket | 48243 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0036781: Combo Fix price discount is not working correctly when you add the same combo twice in the same ticket. |
Description | Combo Fix price discount is not working correctly when you add same combo twice in the same ticket. |
Steps To Reproduce | 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. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0036645 | | closed | jorge-garcia | combo price is not correct: wrong total amount is calculated |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-09-04 13:27 | nataliag | New Issue | |
2017-09-04 13:27 | nataliag | Assigned To | => Retail |
2017-09-04 13:27 | nataliag | OBNetwork customer | => Yes |
2017-09-04 13:27 | nataliag | Support ticket | => 48243 |
2017-09-04 13:27 | nataliag | Resolution time | => 1506290400 |
2017-09-04 13:27 | nataliag | Triggers an Emergency Pack | => No |
2017-09-07 15:39 | rqueralta | Assigned To | Retail => rqueralta |
2017-09-12 16:47 | hgbot | Checkin | |
2017-09-12 16:47 | hgbot | Note Added: 0098993 | |
2017-09-12 16:47 | hgbot | Status | new => resolved |
2017-09-12 16:47 | hgbot | Resolution | open => fixed |
2017-09-12 16:47 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/aab2d0053ae992f690bf9cd5dd60f86ae4345993 [^] |
2017-09-13 20:07 | hgbot | Checkin | |
2017-09-13 20:07 | hgbot | Note Added: 0099015 | |
2017-09-15 15:45 | hgbot | Checkin | |
2017-09-15 15:45 | hgbot | Note Added: 0099088 | |
2017-09-15 15:45 | hgbot | Fixed in SCM revision | http://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:42 | hgbot | Checkin | |
2017-09-18 14:42 | hgbot | Note Added: 0099118 | |
2017-09-18 14:43 | hgbot | Fixed in SCM revision | http://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:34 | hgbot | Checkin | |
2017-09-18 23:34 | hgbot | Note Added: 0099133 | |
2017-09-18 23:34 | hgbot | Fixed in SCM revision | http://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:55 | hgbot | Checkin | |
2017-09-19 15:55 | hgbot | Note Added: 0099148 | |
2017-09-22 11:09 | ngarcia | Issue Monitored: ngarcia | |
2017-09-22 14:19 | marvintm | Note Added: 0099491 | |
2017-09-22 14:19 | marvintm | Status | resolved => new |
2017-09-22 14:19 | marvintm | Resolution | fixed => open |
2017-09-22 19:43 | hgbot | Checkin | |
2017-09-22 19:43 | hgbot | Note Added: 0099503 | |
2017-09-22 19:47 | hgbot | Checkin | |
2017-09-22 19:47 | hgbot | Note Added: 0099504 | |
2017-10-03 16:45 | hgbot | Checkin | |
2017-10-03 16:45 | hgbot | Note Added: 0099730 | |
2017-10-04 09:28 | migueldejuana | Note Added: 0099751 | |
2017-10-04 09:30 | hgbot | Checkin | |
2017-10-04 09:30 | hgbot | Note Added: 0099752 | |
2017-10-09 10:48 | marvintm | Review Assigned To | => marvintm |
2017-10-09 10:48 | marvintm | Note Added: 0099823 | |
2017-10-09 10:48 | marvintm | Status | new => closed |
2017-10-09 10:48 | marvintm | Resolution | open => no change required |
2017-10-09 10:48 | marvintm | Fixed in Version | => RR18Q1 |
2017-10-17 11:55 | ngarcia | Relationship added | related to 0036645 |
Notes |
|
(0098993)
|
hgbot
|
2017-09-12 16:47
|
|
|
|
(0099015)
|
hgbot
|
2017-09-13 20:07
|
|
|
|
(0099088)
|
hgbot
|
2017-09-15 15:45
|
|
|
|
(0099118)
|
hgbot
|
2017-09-18 14:42
|
|
|
|
(0099133)
|
hgbot
|
2017-09-18 23:34
|
|
|
|
(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
---
|
|
|
|
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
|
|
|
|
(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
|
|
|
|
|
|
|
(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
---
|
|
|
|
Change for issue 36645 has indirectly fixed this issue also. |
|