Openbravo Issue Tracking System - POS2
View Issue Details
0055971POS2POSpublic2024-07-10 23:202024-07-11 08:57
dcontrera 
dcontrera 
normaltrivialhave not tried
closedfixed 
5
 
24Q4 
No
0055971: Shortcut Buttons - Cannot apply a new discount once one is already set on an item
One a discount is applied, you cannot apply any other discount
On back-office :

To avoid the possibility to add several discounts on the same item, the setting is as followed for the 5 discounts :

Apply next discount : checked

Incompatible discounts : all the other 4 discounts are set


On POS :

One a discount is applied, you cannot apply any other discount :

Add an item

Add a 2nd item

Click on a discount shortcut → the discount is applied, the other discounts are greyed

Add a 3rd item → the buttons are still greyed, you cannot add another discount
No tags attached.
Issue History
2024-07-10 23:20dcontreraNew Issue
2024-07-10 23:20dcontreraAssigned To => dcontrera
2024-07-10 23:20dcontreraTriggers an Emergency Pack => No
2024-07-10 23:25hgbotNote Added: 0166880
2024-07-11 08:29guilleaerStatusnew => scheduled
2024-07-11 08:57hgbotResolutionopen => fixed
2024-07-11 08:57hgbotStatusscheduled => closed
2024-07-11 08:57hgbotFixed in Version => 24Q4
2024-07-11 08:57hgbotNote Added: 0166890
2024-07-11 08:57hgbotNote Added: 0166891

Notes
(0166880)
hgbot   
2024-07-10 23:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2788 [^]
(0166890)
hgbot   
2024-07-11 08:57   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 2ed9593e7f16522c72f2576d93e3a83e17e60e40
Author: Dante Contrera <dante.contrera@smfconsulting.es>
Date: 11-07-2024 06:57:38
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/2ed9593e7f16522c72f2576d93e3a83e17e60e40 [^]

Fixed ISSUE-55971: RM-15152 Fixed incompatible shortcuts discounts problems.

---
M web-jspack/org.openbravo.pos2/src/components/Discounts/ManualDiscount/ManualDiscountShortcutButton/ManualDiscountShortcutButton.jsx
M web-jspack/org.openbravo.pos2/src/components/Discounts/ManualDiscount/ManualDiscountShortcutButton/__test__/ManualDiscountShortcutButton.test.jsx
---
(0166891)
hgbot   
2024-07-11 08:57   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2788 [^]