Openbravo Issue Tracking System - POS2
View Issue Details
0049893POS2POSpublic2022-07-28 11:342023-07-18 09:44
lorenzofidalgo 
sreehari 
urgentmajoralways
closedduplicate 
5
main 
 
No
0049893: [22Q3] Specific steps duplicate discounts even with discounts that are supposed not to be added more than once
Discounts get duplicated (or more) when some specific steps are executed using the POS2. Some discounts such as "disc_fixed_5_perc" can not (supposedly) be added more than once per line but, following these steps, that discount can be added several times.
Moreover, the total amount is decreased as consecuence and it is recorded with this cheaper price in the backoffice (check attached image).
I have not been able to reproduce this issue in POS1 (UI is slightly different).
0-Login POS2 as vallblanca.
1-Add 1x "Avalanche transceiver" and 1x "Balaclava Cap" to the receipt.
2-Click in the first added line and, in the overlay, click "Discount" button.
3-Click both checkboxes to add discounts to both lines and add both available discounts ("disc_fixed_5_euro" & "disc_fixed_5_perc"). Click Apply button.
4-Click in the first added line and, in the overlay, click "Discount" button.
5-With only the first line checkbox selected, add "disc_fixed_5_euro" discount and click Apply. DEFECT: Discounts are multiplied (and this can be multiplied several times executing the same process again and again).
No tags attached.
duplicate of feature request 0049884 closed gorka_gil Implement semi-automatic discounts in pos2 
png 1DuplicatedDiscounts.png (191,661) 2022-07-28 11:34
https://issues.openbravo.com/file_download.php?file_id=17345&type=bug
png

png DuplicatedDiscounts.png (98,248) 2022-07-28 11:34
https://issues.openbravo.com/file_download.php?file_id=17346&type=bug
png

png WronglyAddedDiscounts.png (194,840) 2022-07-28 11:34
https://issues.openbravo.com/file_download.php?file_id=17347&type=bug
png
Issue History
2022-07-28 11:34lorenzofidalgoNew Issue
2022-07-28 11:34lorenzofidalgoAssigned To => Retail
2022-07-28 11:34lorenzofidalgoFile Added: 1DuplicatedDiscounts.png
2022-07-28 11:34lorenzofidalgoTriggers an Emergency Pack => No
2022-07-28 11:34lorenzofidalgoFile Added: DuplicatedDiscounts.png
2022-07-28 11:34lorenzofidalgoFile Added: WronglyAddedDiscounts.png
2022-07-28 12:25lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=24564#r24564
2023-07-14 13:07sreehariAssigned ToRetail => sreehari
2023-07-18 07:21guillermogilStatusnew => scheduled
2023-07-18 09:42sreehariRelationship addedduplicate of 0049884
2023-07-18 09:43sreehariNote Added: 0152586
2023-07-18 09:44sreehariStatusscheduled => closed
2023-07-18 09:44sreehariResolutionopen => duplicate

Notes
(0152586)
sreehari   
2023-07-18 09:43   
The issue have already been fixed in this commit : https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/0d402762afeecbe46aa2398af982589e7c55c650 [^]