Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0042168 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Discounts and Promotions | major | always | 2019-10-31 17:26 | 2019-11-22 12:38 | |||
Reporter | inaki_garcia | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | RR20Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 21cc24482bad | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | main | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | guilleaer | |||||||
OBNetwork customer | OBPS | |||||||
Support ticket | 12656 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | main | |||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0042168: [19Q4] Gift discount amount is duplicated when splitting a multiple quantity gift item into lines | |||||||
Description | When creating a ticket with a product group eligible for a "Buy X and pay Y as gift", and splitting the gift product set to 2 or more units and splitting it into two or more lines with the "Split lines" feature, the description item with the discount that appears in the original is duplicated to the other line(s), and does affect the overall cost of the ticket (effectively duplicating the discount value for the gift product group). This is better described in the steps to reproduce and in the screenshot attachment below. This is a regression introduced in the current version (19Q4), as it is not reproducible in 19Q3 and versions prior to it. | |||||||
Steps To Reproduce | PRECONDITION: the "Discounts and Promotions" module must be installed -- In the Backend (ERP) 0. Log in ERP as Group -Admin-The White Valley Group 1. Go to Discounts and Promotions window 2. Create new record - Header tab * Discount type: Buy X and pay Y as gift * Name: Free Wax * Starting date: today's date * Included Products: Only those defined - Products subtab Record 1 * Product: All mountain ski board * Quantity: 1 Record 2 * Product: Ski wax * Gift product: checked * Gift quantity: 2 -- In the Web POS 0. Log in the POS as user "vallblanca" 1. Add 1 unit of "All mountain ski board" 2. Add 2 units of "Ski wax" NOTICE that the 2 units of Ski wax are correctly discounted, as shown in the attached picture, "gift-items-correctly-discounted.png" 3. Click on the newly created ticket line, and click on the "Split" option in the line description pane. Click "Apply" button in the "Split" popup that appears. NOTICE the original line discount is duplicated in the second line, in spite of having decreased in one unit per line. There's no recalculation of the discounts, and the original discount amount is duplicated and reflected in the total amount of the ticket (check the attached picture: "gift-items-discount-duplicated.png") | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(0115661) hgbot (developer) 2019-11-18 14:54 |
Repository: erp/pmods/org.openbravo.retail.discounts Changeset: 21cc24482bad436f97d613d27ea6605e3f31d352 Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Mon Nov 18 19:24:19 2019 +0530 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/21cc24482bad436f97d613d27ea6605e3f31d352 [^] Fixed issue 42168 : Discount Price should be updated with proper units based on chunks and line qty --- M src-test/org/openbravo/retail/discounts/test/unittests/DiscountBuyXGiftYTest.java M web/org.openbravo.retail.discounts/js/discountsengine/common/rules/buy-x-gift-y-discount.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2019-10-31 17:26 | inaki_garcia | New Issue | |
2019-10-31 17:26 | inaki_garcia | Assigned To | => Retail |
2019-10-31 17:26 | inaki_garcia | File Added: gift-items-correctly-discounted.png | |
2019-10-31 17:26 | inaki_garcia | OBNetwork customer | => No |
2019-10-31 17:26 | inaki_garcia | Regression introduced in release | => main |
2019-10-31 17:26 | inaki_garcia | Triggers an Emergency Pack | => No |
2019-10-31 17:26 | inaki_garcia | Issue generated from | 0042131 |
2019-10-31 17:27 | inaki_garcia | File Added: gift-items-discount-duplicated.png | |
2019-11-02 12:51 | Practics | Issue Monitored: Practics | |
2019-11-11 17:56 | ngarcia | OBNetwork customer | No => OBPS |
2019-11-11 17:56 | ngarcia | Support ticket | => 12656 |
2019-11-11 17:56 | ngarcia | Resolution time | => 1574636400 |
2019-11-12 14:53 | rqueralta | Assigned To | Retail => rqueralta |
2019-11-12 14:53 | rqueralta | Status | new => scheduled |
2019-11-13 15:25 | ranjith_qualiantech_com | Assigned To | rqueralta => ranjith_qualiantech_com |
2019-11-18 14:54 | hgbot | Checkin | |
2019-11-18 14:54 | hgbot | Note Added: 0115661 | |
2019-11-18 14:54 | hgbot | Status | scheduled => resolved |
2019-11-18 14:54 | hgbot | Resolution | open => fixed |
2019-11-18 14:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/21cc24482bad436f97d613d27ea6605e3f31d352 [^] |
2019-11-18 15:21 | marvintm | Status | resolved => new |
2019-11-18 15:21 | marvintm | Resolution | fixed => open |
2019-11-18 15:22 | marvintm | Status | new => scheduled |
2019-11-18 15:22 | marvintm | Status | scheduled => resolved |
2019-11-18 15:22 | marvintm | Resolution | open => fixed |
2019-11-22 12:38 | guilleaer | Review Assigned To | => guilleaer |
2019-11-22 12:38 | guilleaer | Status | resolved => closed |
2019-11-22 12:38 | guilleaer | Fixed in Version | => RR20Q1 |
Copyright © 2000 - 2009 MantisBT Group |