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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0047537
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts and Promotionsmajoralways2021-08-11 20:112021-08-25 07:46
ReporterlbressanView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutionfixedFixed in VersionRR21Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0047537: Discount is not applied correctly in version 21Q2.

DescriptionAfter applying the patch https://issues.openbravo.com/view.php?id=47408 [^] the discount just is applying one time.
I let a video to see the error:
https://www.youtube.com/watch?v=9RHUSwzpy_g [^]
Steps To ReproduceFirst of all: It's needed to apply the patch https://issues.openbravo.com/view.php?id=47408 [^]

After applying the patch, the steps are:
1. In the "Discount and Promotion" window, create a new discount.
2. Fill the Starting Date field with the current date.
3. We set the Priority field equal to 7.
4. We put the "Apply Next Discount Promotion" field in FALSE.
5. We put the fields "Included Products" and "Included Price List" in "Only those defined".
6. We put the field "Discount%" with the value 50.
7. We put the field "Min Quantity" with the value 2.
8. We put the field "Is Multiple" with the value TRUE.
9. We put the field "Units per packages" with the value 2.
10. In the "Product" tab, add the product to which the discount will be applied. Example "Adhesive body warmers".
11. In the "Price List" tab, add the price list for the product to which the discount will be applied. Example "The White Valley Group Sale Price List".
12. Login in WebPOS.
13. We add 2 units of the product "Adhesive body warmers". And we see that the discount is applied just one time.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0131328)
hgbot (developer)
2021-08-24 16:37

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/34 [^]
(0131336)
hgbot (developer)
2021-08-25 07:46

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/34 [^]
(0131337)
hgbot (developer)
2021-08-25 07:46

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 1996937add1f99c5f38ee86bd38c969f7b312dec
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-08-24T19:08:26+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/1996937add1f99c5f38ee86bd38c969f7b312dec [^]

Fixed ISSUE-47537: Discount Amount should be updated based on chunks of discount
* If discount is configured with multiple unit per package, then discount amount should be updated with number of packages applied

---
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountPriceAdjusmentTest.java
M src-test/org/openbravo/retail/discounts/test/unittests/combined/I35637_VerifyPriceAdjWithIsMultiple.java
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/rules/price-adjustment-discount.js
---

- Issue History
Date Modified Username Field Change
2021-08-11 20:11 lbressan New Issue
2021-08-11 20:11 lbressan Assigned To => Retail
2021-08-11 20:11 lbressan Resolution time => 1629928800
2021-08-11 20:11 lbressan Triggers an Emergency Pack => No
2021-08-11 20:13 Practics Issue Monitored: Practics
2021-08-12 14:34 gsuarez Priority normal => urgent
2021-08-17 15:15 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2021-08-24 15:34 ranjith_qualiantech_com Status new => scheduled
2021-08-24 16:37 hgbot Note Added: 0131328
2021-08-25 07:46 hgbot Resolution open => fixed
2021-08-25 07:46 hgbot Status scheduled => closed
2021-08-25 07:46 hgbot Note Added: 0131336
2021-08-25 07:46 hgbot Fixed in Version => RR21Q4
2021-08-25 07:46 hgbot Note Added: 0131337


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker