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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0047408
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts and Promotionsmajorhave not tried2021-07-16 21:572021-07-27 11:11
ReporterlbressanView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in VersionRR21Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0047408: Discount and Promotions error in version 21Q2. Discount is not applied correctly

DescriptionDiscount and Promotions error in version 21Q2. Discount is not applied correctly
Steps To ReproduceStep to reproduce:
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 in the wrong way

It is discounting 100% of the value of the second unit of the product instead of discounting 50% of the value of the second unit.
This reproduced in livebuilds 21Q2 and in livebuilds 19Q3.3 it works correctly.
We add a video for more detail on how to reproduce the error. https://youtu.be/8nglLRRO5-8 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0130774)
hgbot (developer)
2021-07-27 10:53

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/31 [^]
(0130777)
hgbot (developer)
2021-07-27 11:11

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/31 [^]
(0130778)
hgbot (developer)
2021-07-27 11:11

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: e0c497cd9ebb842a98428be3c1bbdce1b3cfbaa4
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-07-27T09:37:51+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/e0c497cd9ebb842a98428be3c1bbdce1b3cfbaa4 [^]

Fixed ISSUE-47408: UnitPrice should be used for discount if units per package is configured

---
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-07-16 21:57 lbressan New Issue
2021-07-16 21:57 lbressan Assigned To => Retail
2021-07-16 21:57 lbressan Resolution time => 1628200800
2021-07-16 21:57 lbressan Triggers an Emergency Pack => No
2021-07-16 22:08 Practics Issue Monitored: Practics
2021-07-19 11:27 guilleaer Assigned To Retail => ranjith_qualiantech_com
2021-07-19 11:27 guilleaer Status new => acknowledged
2021-07-27 10:53 hgbot Note Added: 0130774
2021-07-27 11:11 hgbot Note Added: 0130777
2021-07-27 11:11 hgbot Resolution open => fixed
2021-07-27 11:11 hgbot Status acknowledged => closed
2021-07-27 11:11 hgbot Fixed in Version => RR21Q4
2021-07-27 11:11 hgbot Note Added: 0130778


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker