Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0048028 | Retail Modules | Discounts by Total | public | 2021-11-10 14:51 | 2021-12-02 11:14 |
|
Reporter | ludmila_ursu | |
Assigned To | ranjith_qualiantech_com | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | 20.04.3 |
Product Version | RR20Q1.2 | |
Target Version | | Fixed in Version | RR22Q1 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | OBPS |
Support ticket | 31764 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0048028: Discounts apply to all lines of the ticket |
Description | Today, 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 Reproduce | Go 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. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | print screens discount all lines ticket.odt (370,541) 2021-11-10 14:51 https://issues.openbravo.com/file_download.php?file_id=16338&type=bug |
|
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 | OBNetwork customer | => OBPS |
2021-11-10 14:51 | ludmila_ursu | Support ticket | => 31764 |
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 | Merge Request Status | => open |
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 | Merge Request Status | open => approved |
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 | |
Notes |
|
(0133196)
|
hgbot
|
2021-11-19 06:55
|
|
|
|
(0133197)
|
hgbot
|
2021-11-19 06:55
|
|
|
|
(0133198)
|
hgbot
|
2021-11-19 06:55
|
|
|
|
(0133203)
|
hgbot
|
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
|
2021-11-19 08:12
|
|
|
|
(0133205)
|
hgbot
|
2021-11-19 08:12
|
|
|
|
(0133206)
|
hgbot
|
2021-11-19 08:12
|
|
|
|
(0133207)
|
hgbot
|
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
|
2021-11-19 08:12
|
|
|
|
|
Manual Promotions not properly applied when doing CR |
|
|
(0133424)
|
hgbot
|
2021-12-01 11:50
|
|
|
|
(0133469)
|
hgbot
|
2021-12-02 09:23
|
|
|
|
(0133470)
|
hgbot
|
2021-12-02 09:23
|
|
|