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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048028
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts by Totalmajoralways2021-11-10 14:512021-12-02 11:14
Reporterludmila_ursuView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in VersionRR22Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version11.0.11
OS Version20.04.3Database version10Ant version1.10.5
Product VersionRR20Q1.2SCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048028: Discounts apply to all lines of the ticket

DescriptionToday, when we set a "Fixed Percentage per Total Amount Discount" or "Fixed Discount per Total Amount" in the backoffice, we may choose to exclude products from this discount.
Nevertheless, in the POS, the product still is discounted

Steps To ReproduceGo to backoffice, Window "Discounts and Promotions". Create a new discount, either of type "Fixed Discount per Total Amount", either of type "Fixed Percentage per Total Amount".
In "Filter Options", "included Products*" option, set "All excluding defined".
Save the new discount.
In tab "Products" of this new discount, add a product, that you want to exclude from the discount.
Save.

Go to POS and add some products to the ticket, and also the product that was set as "excluded" in the promotion.
Click on one line from the ticket, then click on button "Discounts" in the right pane.
Choose the discount that was created in the backoffice.
Apply.

You will notice that all products were discounted, even the excluded product.

This is not correct, the excluded product should not be discounted.
TagsNo tags attached.
Attached Files? file icon print screens discount all lines ticket.odt [^] (370,541 bytes) 2021-11-10 14:51

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0133196)
hgbot (developer)
2021-11-19 06:55

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/42 [^]
(0133197)
hgbot (developer)
2021-11-19 06:55

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/631 [^]
(0133198)
hgbot (developer)
2021-11-19 06:55

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.bytotal/-/merge_requests/12 [^]
(0133203)
hgbot (developer)
2021-11-19 08:12

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 31cbe81ccc596778854fbd9e6d163b176370f914
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-11-16T15:35:55+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/31cbe81ccc596778854fbd9e6d163b176370f914 [^]

Fixed ISSUE-48028: Discount Filter should be applied for Manual and ByTotal Promotions

---
M src-test/org/openbravo/retail/discounts/test/base/model/definition/DiscretionaryFixedAmount.java
M src-test/org/openbravo/retail/discounts/test/base/model/definition/DiscretionaryFixedPercentage.java
M src-test/org/openbravo/retail/discounts/test/base/model/definition/UserDefinedAmount.java
M src-test/org/openbravo/retail/discounts/test/base/model/definition/UserDefinedLineAmount.java
M src-test/org/openbravo/retail/discounts/test/base/model/definition/UserDefinedPercentage.java
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountDiscretionaryFixedAmountTest.java
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountDiscretionaryFixedPercentageTest.java
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountUserDefinedAmountTest.java
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountUserDefinedLineAmountTest.java
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountUserDefinedPercentageTest.java
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/rules/manual-amount-promotions-discount.js
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/rules/manual-linefinalprice-promotions-discount.js
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/rules/manual-percentage-promotions-discount.js
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js
---
(0133204)
hgbot (developer)
2021-11-19 08:12

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/42 [^]
(0133205)
hgbot (developer)
2021-11-19 08:12

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: af605b8128b7b6b1daa8e05b66f61b73284c78ec
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-11-19T11:20:00+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/af605b8128b7b6b1daa8e05b66f61b73284c78ec [^]

Related to ISSUE-48028: Discount Filter should be applied for Manual and ByTotal Promotions

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/AddByTotalPromotion.js
M web/org.openbravo.retail.posterminal/js/model/discounts.js
---
(0133206)
hgbot (developer)
2021-11-19 08:12

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/631 [^]
(0133207)
hgbot (developer)
2021-11-19 08:12

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.bytotal [^]
Changeset: 3254ec4a5a0681870454c0fe699dae2941b3196a
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-11-15T16:04:30+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.bytotal/-/commit/3254ec4a5a0681870454c0fe699dae2941b3196a [^]

Related to ISSUE-48028: Junit test for Discount Filter in ByTotal Promotions

---
M src-test/org/openbravo/discounts/bytotal/test/base/model/definition/FixedDiscountPerTotalAmount.java
M src-test/org/openbravo/discounts/bytotal/test/base/model/definition/FixedPercentagePerTotalAmount.java
M src-test/org/openbravo/discounts/bytotal/test/base/model/definition/VariableDiscountPerTotalAmount.java
M src-test/org/openbravo/discounts/bytotal/test/base/model/definition/VariablePercentagePerTotalAmount.java
M src-test/org/openbravo/discounts/bytotal/test/unittests/DiscountFixedDiscountPerTotalAmountTest.java
M src-test/org/openbravo/discounts/bytotal/test/unittests/DiscountFixedPercentagePerTotalAmountTest.java
M src-test/org/openbravo/discounts/bytotal/test/unittests/DiscountVariableDiscountPerTotalAmountTest.java
M src-test/org/openbravo/discounts/bytotal/test/unittests/DiscountVariablePercentagePerTotalAmountTest.java
---
(0133208)
hgbot (developer)
2021-11-19 08:12

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.bytotal/-/merge_requests/12 [^]
(0133414)
ranjith_qualiantech_com (developer)
2021-11-30 13:59

Manual Promotions not properly applied when doing CR
(0133424)
hgbot (developer)
2021-12-01 11:50

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/45 [^]
(0133469)
hgbot (developer)
2021-12-02 09:23

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: e1c2aff42ba858acb15bae71aaf1ca98cd62574e
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-12-02T08:23:05+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/e1c2aff42ba858acb15bae71aaf1ca98cd62574e [^]

Fixed ISSUE-48028: Manual Promotions should be recalculated when doing CR

---
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js
---
(0133470)
hgbot (developer)
2021-12-02 09:23

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/45 [^]

- Issue History
Date Modified Username Field Change
2021-11-10 14:51 ludmila_ursu New Issue
2021-11-10 14:51 ludmila_ursu Assigned To => Retail
2021-11-10 14:51 ludmila_ursu File Added: print screens discount all lines ticket.odt
2021-11-10 14:51 ludmila_ursu Triggers an Emergency Pack => No
2021-11-11 06:57 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2021-11-19 06:55 hgbot Note Added: 0133196
2021-11-19 06:55 hgbot Note Added: 0133197
2021-11-19 06:55 hgbot Note Added: 0133198
2021-11-19 08:12 hgbot Resolution open => fixed
2021-11-19 08:12 hgbot Status new => closed
2021-11-19 08:12 hgbot Fixed in Version => RR22Q1
2021-11-19 08:12 hgbot Note Added: 0133203
2021-11-19 08:12 hgbot Note Added: 0133204
2021-11-19 08:12 hgbot Note Added: 0133205
2021-11-19 08:12 hgbot Note Added: 0133206
2021-11-19 08:12 hgbot Note Added: 0133207
2021-11-19 08:12 hgbot Note Added: 0133208
2021-11-30 13:59 ranjith_qualiantech_com Note Added: 0133414
2021-11-30 13:59 ranjith_qualiantech_com Status closed => new
2021-11-30 13:59 ranjith_qualiantech_com Resolution fixed => open
2021-11-30 13:59 ranjith_qualiantech_com Fixed in Version RR22Q1 =>
2021-11-30 14:48 ranjith_qualiantech_com Status new => scheduled
2021-12-01 11:50 hgbot Note Added: 0133424
2021-12-02 09:23 hgbot Resolution open => fixed
2021-12-02 09:23 hgbot Status scheduled => closed
2021-12-02 09:23 hgbot Fixed in Version => RR22Q1
2021-12-02 09:23 hgbot Note Added: 0133469
2021-12-02 09:23 hgbot Note Added: 0133470
2021-12-02 11:14 hgbot Note Added: 0133479
2021-12-02 18:59 marvintm Note Deleted: 0133479


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker