Openbravo Issue Tracking System - Retail Modules | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0043203 | Retail Modules | Discounts and Promotions | public | 2020-02-13 08:10 | 2020-03-20 17:54 | |||||||||||||||||||||
Reporter | psarobe | |||||||||||||||||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||||||||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 5 | OS Version | |||||||||||||||||||||||
Product Version | pi | |||||||||||||||||||||||||
Target Version | Fixed in Version | RR20Q2 | ||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | marvintm | |||||||||||||||||||||||||
OBNetwork customer | ||||||||||||||||||||||||||
Support ticket | ||||||||||||||||||||||||||
Regression level | Production - QA Approved | |||||||||||||||||||||||||
Regression date | 2019-08-02 | |||||||||||||||||||||||||
Regression introduced in release | RR19Q4 | |||||||||||||||||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/711d273a9a3a/web/org.openbravo.retail.posterminal/js/model/order.js [^] | |||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0043203: Discounts with Characteristics. Having diferent characteristics work as "OR" instead of "AND" | |||||||||||||||||||||||||
Description | If you have two characterstics: - Season - Brand And you use these two in the characteristic tab as: - Season: 2019 - Brand: Gucci Instead of applying the discount to the products that are in season 2019 and Gucci is applying to either product in season 2019 or with brand Gucci Update: After analyze Prior to discount refactor -> Working as OR -> match with above description -> Applying for products with at least one of the characteristics After discounts refactor -> Working as AND -> only apply for products with both characteristics | |||||||||||||||||||||||||
Steps To Reproduce | 1. Create two characteristics with values 2. In the discount and promotion window select price adjustment with 10% 3. Move to the Characteristics tab and add these two characteristics and with value in each. 4. Go to POS and see the result. Expected result: - Only for products that are season 2019 and Gucci Current result: - It is applying to either products that in season 2019 or Gucci | |||||||||||||||||||||||||
Proposed Solution | This is the expected behaviour with the current definition. We need to improve the configuration options so that we can support both ways of working. The proposal is the following: - First we need to change the configuration options of the "Included characteristics". We need to replace the "Only the values defined" by "Any of the ones defined" (change only the displayed value, we should not change the internal value of the reflist to preserve the compatibility with previous data), and we need to add a new one called "All of the values defined". - After that we need to change the discount-rules.js file (specifically the isApplicableToLine function), to take into account this new value, so that if it is set, all characteristic values specified in the discount need to be present in the product for the discount to be applicable to the line. Update: After analyze -> return to previous behavior -> OR -> add new behavior -> AND | |||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | ||||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2020-02-13 08:10 | psarobe | New Issue | ||||||||||||||||||||||||
2020-02-13 08:10 | psarobe | Assigned To | => Retail | |||||||||||||||||||||||
2020-02-13 08:10 | psarobe | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2020-02-13 08:11 | martinsdan | Issue Monitored: martinsdan | ||||||||||||||||||||||||
2020-02-13 08:31 | martinsdan | Relationship added | related to 0043204 | |||||||||||||||||||||||
2020-02-13 09:06 | marvintm | Proposed Solution updated | ||||||||||||||||||||||||
2020-02-14 08:43 | guilleaer | Resolution time | => 1583276400 | |||||||||||||||||||||||
2020-02-17 12:58 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||||||||||||||||
2020-02-17 12:58 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||||||||||||||||
2020-02-17 13:31 | ranjith_qualiantech_com | Note Added: 0117856 | ||||||||||||||||||||||||
2020-02-20 10:12 | ranjith_qualiantech_com | Note Added: 0117961 | ||||||||||||||||||||||||
2020-02-20 15:17 | hgbot | Checkin | ||||||||||||||||||||||||
2020-02-20 15:17 | hgbot | Note Added: 0117974 | ||||||||||||||||||||||||
2020-02-20 15:17 | hgbot | Checkin | ||||||||||||||||||||||||
2020-02-20 15:17 | hgbot | Note Added: 0117975 | ||||||||||||||||||||||||
2020-02-20 15:17 | hgbot | Status | scheduled => resolved | |||||||||||||||||||||||
2020-02-20 15:17 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
2020-02-20 15:17 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/38d39c4d560b2115a78f3dd41bd579e89c195124 [^] | |||||||||||||||||||||||
2020-02-20 15:26 | guilleaer | Note Deleted: 0117856 | ||||||||||||||||||||||||
2020-02-20 15:31 | ranjith_qualiantech_com | Regression level | => Production - QA Approved | |||||||||||||||||||||||
2020-02-20 15:31 | ranjith_qualiantech_com | Regression date | => 2019-08-02 | |||||||||||||||||||||||
2020-02-20 15:31 | ranjith_qualiantech_com | Regression introduced in release | => RR19Q4 | |||||||||||||||||||||||
2020-02-20 15:31 | ranjith_qualiantech_com | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/711d273a9a3a/web/org.openbravo.retail.posterminal/js/model/order.js [^] | |||||||||||||||||||||||
2020-02-20 15:31 | ranjith_qualiantech_com | Note Added: 0117976 | ||||||||||||||||||||||||
2020-02-20 15:31 | ranjith_qualiantech_com | Status | resolved => new | |||||||||||||||||||||||
2020-02-20 15:31 | ranjith_qualiantech_com | Resolution | fixed => open | |||||||||||||||||||||||
2020-02-20 15:31 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||||||||||||||||
2020-02-20 15:32 | ranjith_qualiantech_com | Status | scheduled => resolved | |||||||||||||||||||||||
2020-02-20 15:32 | ranjith_qualiantech_com | Resolution | open => fixed | |||||||||||||||||||||||
2020-02-20 17:09 | guilleaer | Description Updated | bug_revision_view_page.php?rev_id=20417#r20417 | |||||||||||||||||||||||
2020-02-20 17:09 | guilleaer | Proposed Solution updated | ||||||||||||||||||||||||
2020-02-20 19:39 | marvintm | Review Assigned To | => marvintm | |||||||||||||||||||||||
2020-02-20 19:39 | marvintm | Status | resolved => closed | |||||||||||||||||||||||
2020-02-20 19:39 | marvintm | Fixed in Version | => RR20Q2 | |||||||||||||||||||||||
2020-02-21 05:58 | hgbot | Checkin | ||||||||||||||||||||||||
2020-02-21 05:58 | hgbot | Note Added: 0117992 | ||||||||||||||||||||||||
2020-02-27 18:33 | rafaroda | Issue Monitored: rafaroda | ||||||||||||||||||||||||
2020-03-17 13:19 | hgbot | Checkin | ||||||||||||||||||||||||
2020-03-17 13:19 | hgbot | Note Added: 0118642 | ||||||||||||||||||||||||
2020-03-20 17:54 | hudsonbot | Checkin | ||||||||||||||||||||||||
2020-03-20 17:54 | hudsonbot | Note Added: 0118737 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|