Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036645
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts Combomajoralways2017-08-14 10:242017-10-06 15:12
ReportermalsasuaView Statuspublic 
Assigned Tojorge-garcia 
PrioritynormalResolutionfixedFixed in VersionRR18Q1
StatusclosedFix in branchFixed in SCM revision4f472a8ded74
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036645: combo price is not correct: wrong total amount is calculated

Descriptionin 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0036781 closedrqueralta Combo Fix price discount is not working correctly when you add the same combo twice in the same ticket. 

-  Notes
(0098498)
malsasua (developer)
2017-08-14 10:27

we have tested it with the last version published (1.0.400)
(0099787)
hgbot (developer)
2017-10-06 10:24

Repository: erp/pmods/org.openbravo.retail.discount.twofamiliescombo
Changeset: 368bcb788795e4a73e2394dd1d462cde70c5a82b
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Sep 13 17:21:13 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discount.twofamiliescombo/rev/368bcb788795e4a73e2394dd1d462cde70c5a82b [^]

Related to issue 36645: combo price is not correct: wrong total amount is
calculated

Added new attribute to force the replace of this kind of promotions.

---
M web/org.openbravo.retail.discount.twofamiliescombo/source/twofamilies-rule-impl.js
---
(0099799)
hgbot (developer)
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 (developer)
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 (developer)
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
---
(0099811)
marvintm (manager)
2017-10-06 15:11

https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/a1d4cacc0587 [^]

- 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 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker