Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0036645 | Retail Modules | Discounts Combo | public | 2017-08-14 10:24 | 2017-10-06 15:12 |
|
Reporter | malsasua | |
Assigned To | jorge-garcia | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
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 | 47996 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0036645: combo price is not correct: wrong total amount is calculated |
Description | in some cases, the total price calculated using combo discount is wrong. It happens defining price by family. |
Steps To Reproduce | (please, contact with support team to provide the environment where the problem is reproducible)
define combo:
total amount of combo: 22
New bill:
. add two combo: total amount: 44
. add new line with one product (this product belongs to combo) price: 7
Problem:
total amount calculated: 46.49
correct total amount: 51 |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0036781 | | closed | rqueralta | Combo Fix price discount is not working correctly when you add the same combo twice in the same ticket. |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-08-14 10:24 | malsasua | New Issue | |
2017-08-14 10:24 | malsasua | Assigned To | => Retail |
2017-08-14 10:24 | malsasua | OBNetwork customer | => Yes |
2017-08-14 10:24 | malsasua | Support ticket | => 47996 |
2017-08-14 10:24 | malsasua | Resolution time | => 1504562400 |
2017-08-14 10:24 | malsasua | Triggers an Emergency Pack | => No |
2017-08-14 10:27 | malsasua | Note Added: 0098498 | |
2017-09-06 18:28 | gorka_gil | Assigned To | Retail => gorka_gil |
2017-09-07 16:35 | gorka_gil | Assigned To | gorka_gil => Retail |
2017-09-11 12:54 | jorge-garcia | Status | new => scheduled |
2017-09-11 12:55 | jorge-garcia | Assigned To | Retail => jorge-garcia |
2017-10-06 10:24 | hgbot | Checkin | |
2017-10-06 10:24 | hgbot | Note Added: 0099787 | |
2017-10-06 13:11 | hgbot | Checkin | |
2017-10-06 13:11 | hgbot | Note Added: 0099799 | |
2017-10-06 13:11 | hgbot | Checkin | |
2017-10-06 13:11 | hgbot | Note Added: 0099800 | |
2017-10-06 13:12 | hgbot | Checkin | |
2017-10-06 13:12 | hgbot | Note Added: 0099801 | |
2017-10-06 13:12 | hgbot | Status | scheduled => resolved |
2017-10-06 13:12 | hgbot | Resolution | open => fixed |
2017-10-06 13:12 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4f472a8ded74ee36605d34273104c6f20db2f23d [^] |
2017-10-06 15:11 | marvintm | Note Added: 0099811 | |
2017-10-06 15:12 | marvintm | Review Assigned To | => marvintm |
2017-10-06 15:12 | marvintm | Status | resolved => closed |
2017-10-06 15:12 | marvintm | Fixed in Version | => RR18Q1 |
2017-10-17 11:55 | ngarcia | Relationship added | related to 0036781 |
Notes |
|
|
we have tested it with the last version published (1.0.400) |
|
|
(0099787)
|
hgbot
|
2017-10-06 10:24
|
|
|
|
(0099799)
|
hgbot
|
2017-10-06 13:11
|
|
Repository: tools/automation/pi-mobile
Changeset: c1ac874407aa0c3d0435ae2a82a97d93627c0288
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Sep 29 09:15:49 2017 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/c1ac874407aa0c3d0435ae2a82a97d93627c0288 [^]
Related to issue 36645: combo price is not correct: wrong total amount is
calculated
Due to changes in the discount engine and in some rules, some test must be
changed.
---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/Communit6781_BuyXPayYSameProduct.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/Communit6782_BuyXPayYDifferentProductCheapest_I.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I33201_VerifyPackCombinedWithManualPromotions.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I33390_BuyXPayYSameNonGroupProduct.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/splitline/SplitLineWithAutomaticAndManualPromoBuyXPayYSameProd.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/splitline/SplitLineWithAutomaticPromo.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/splitline/SplitLineWithAutomaticPromoBuyXPayYSameProd1.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/splitline/SplitLineWithAutomaticPromoBuyXPayYSameProd2.java
---
|
|
|
(0099800)
|
hgbot
|
2017-10-06 13:11
|
|
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: efc4d42a63c32cab3551478cff19722fb395244c
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Sep 29 09:18:21 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/efc4d42a63c32cab3551478cff19722fb395244c [^]
Related to issue 36645: combo price is not correct: wrong total amount is
calculated
The promotion buyXPayYSameProduct has change to work accordingly with
the changes in applyPromotions.
The rule implementation checks all the lines of the receipt in order to apply
the promotion.
---
M web/org.openbravo.retail.discounts/js/promotion-XYsameProduct.js
---
|
|
|
(0099801)
|
hgbot
|
2017-10-06 13:12
|
|
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4f472a8ded74ee36605d34273104c6f20db2f23d
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Oct 06 09:26:20 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4f472a8ded74ee36605d34273104c6f20db2f23d [^]
Fixed issue 36645: combo price is not correct: wrong total amount is
calculated
The solution is to allow several promotions with the same ruleId in
the same line.
Additionally, there is new logic to merge promotions with the same
ruleId. The promotions are not merged if the quantity reserved is
higher than the line quantity.
It’s necessary to keep the old functionality for two families combo.
Changed price adjusment rule implementation to work as other rules.
---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
|
|
|
|
|