Openbravo Issue Tracking System - POS2
View Issue Details
0046407POS2POSpublic2021-04-29 08:582021-05-19 17:19
jorge-garcia 
javierRodriguez 
normalmajorhave not tried
closedfixed 
5
 
 
No
0046407: Manual promotions are not properly applied
Manual promotions (excluding order discounts) are not properly applied in new POS
1) Login in the application
2) Add two products (i.e. Avalanche Transceiver and Balaclava Cap)
3) Select the first line and in the popover, select Discount option
4) Click on "disc_5_var_euro" and change the amount to 10
5) Apply only to the FIRST line
6) Check the promotion of 10 is applied only to the first line
7) Select the second line and in the popover, select Discount option
8) Click on "disc_5_var_euro" and leave the default amount (5)
9) Apply only to the SECOND line
10) Check the promotion of 10 is applied to the first and second line (this is wrong, it should apply 10 to the first line and 5 to the second line)

No tags attached.
related to defect 0046659 closed Retail [21Q2] Applying the same discount to two different lines does not work properly 
depends on backport 0046416TAP closed javierRodriguez Manual promotions are not properly applied 
blocks defect 0046261 closed jorge-garcia JIRA 517 - No minus cost is applied to menu if the costs of components is less than the price of the menu 
Issue History
2021-04-29 08:58jorge-garciaNew Issue
2021-04-29 08:58jorge-garciaAssigned To => Retail
2021-04-29 08:58jorge-garciaTriggers an Emergency Pack => No
2021-04-29 08:59jorge-garciaRelationship addedblocks 0046261
2021-04-29 09:39guilleaerResolution time => 1620856800
2021-04-29 10:51guilleaerStatusnew => scheduled
2021-04-29 10:51guilleaerStatusscheduled => acknowledged
2021-05-11 08:32guilleaerResolution time1620856800 => 1621461600
2021-05-11 10:17javierRodriguezAssigned ToRetail => javierRodriguez
2021-05-11 10:18javierRodriguezStatusacknowledged => scheduled
2021-05-14 08:08marvintmRelationship addedrelated to 0046659
2021-05-16 23:49hgbotNote Added: 0128149
2021-05-16 23:59hgbotNote Added: 0128150
2021-05-19 13:54hgbotNote Added: 0128403
2021-05-19 13:54hgbotNote Added: 0128404
2021-05-19 17:19hgbotResolutionopen => fixed
2021-05-19 17:19hgbotStatusscheduled => closed
2021-05-19 17:19hgbotNote Added: 0128411
2021-05-19 17:19hgbotNote Added: 0128412
2021-05-19 17:19hgbotNote Added: 0128413
2021-05-19 17:19hgbotNote Added: 0128414

Notes
(0128149)
hgbot   
2021-05-16 23:49   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/459 [^]
(0128150)
hgbot   
2021-05-16 23:59   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/23 [^]
(0128403)
hgbot   
2021-05-19 13:54   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: e532d8cb63123998005ae06077e50f8dfca79886
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 2021-05-13T16:01:25+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/e532d8cb63123998005ae06077e50f8dfca79886 [^]

Related to ISSUE-46407: Include the discount implementation value in the execute discount calcutation process

---
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
---
(0128404)
hgbot   
2021-05-19 13:54   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/23 [^]
(0128411)
hgbot   
2021-05-19 17:19   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: d220d3d059e644277f8f4a527f42ddc3c354d6cf
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 2021-05-19T15:09:48+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/d220d3d059e644277f8f4a527f42ddc3c354d6cf [^]

Fixed ISSUE-46407: It is not possible to add two discounts with the same discountType but with different value

---
M web-jspack/org.openbravo.pos2/src/components/Discounts/ManualDiscount/DiscountInputAmountCell/DiscountInputAmountCell.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLineDiscount/TicketLineDiscount.jsx
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/SetManualDiscountIntoLines.js
---
(0128412)
hgbot   
2021-05-19 17:19   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 149fb8cc279513e58a3e39ca2a96eceec7928cad
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 2021-05-19T15:09:48+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/149fb8cc279513e58a3e39ca2a96eceec7928cad [^]

Related to ISSUE-46407: Replace filter function by find in TicketLineDiscount

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLineDiscount/TicketLineDiscount.jsx
---
(0128413)
hgbot   
2021-05-19 17:19   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: c315960a61a5d7b3a206e6868d0460ead767b15e
Author: Javier Rodriguez Regueiro <javier.rodriguez@openbravo.com>
Date: 2021-05-19T17:18:32+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c315960a61a5d7b3a206e6868d0460ead767b15e [^]

Related to ISSUE-46407: Fix some errors in discount panel grid

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.pos2/src/components/Discounts/ManualDiscount/DiscountInputAmountCell/DiscountInputAmountCell.jsx
M web-jspack/org.openbravo.pos2/src/components/Discounts/ManualDiscount/DiscountPanelGrid/DiscountPanelGrid.jsx
---
(0128414)
hgbot   
2021-05-19 17:19   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/459 [^]