Openbravo Issue Tracking System - POS2
View Issue Details
0052219POS2Restaurantspublic2023-04-25 11:102023-08-23 07:00
asier_perez 
Rajesh_18 
normalminoralways
scheduledopen 
5
 
 
No
0052219: [23Q2] The price of a product with modifiers is calculated incorrectly when editing its modifiers
Some products have modifiers that alter its price, such as extra ingredients. When those modifiers are edited, altering the total price each time, the product's price is calculated incorrectly and it can be paid while it is in that state.
1) Log in POS2
2) Change to Restaurants schema
3) Select Cheeseburger to add it to the product
4) In the 'Step 1 of 2: Modifiers', click Next button
5) In the 'Step 2 of 2: Meat Temperature', select Blue => The Cheeseburger should have been added to the ticket with a price of 7.00 €
6) Select the Cheeseburger in the ticket
7) In the popup, click on Edit Modifiers
8) In the 'Step 1 of 3: Cooking Start Time', click Next button
9) In the 'Step 2 of 3: Meat Temperature', click Next button
10) In the 'Step 3 of 3: Modifiers', select Egg and Olive extra ingredients
11) Click on the Apply button => The Cheeseburger's price should have been changed to 8.25 € (7.00 + 1.00 + 0.25)
12) Repeat steps 6, 7 and 8
13) In the 'Step 2 of 3: Meat Temperature', select 'Well done'
14) In the 'Step 3 of 3: Modifiers', deselect Egg and select Pickle
15) Click on the Apply button => The Cheeseburger's price is incorrect: 7.00 + 0.50 + 0.25 + 0.25 = 8.00 €, but instead 9.00 € is displayed, and the ticket can be paid with that incorrect price

There are more similar flows that display the price incorrectly, such as checking, when editing a Cheeseburger's modifiers, checking and unchecking 'Egg' and then clicking 'Apply'.
No tags attached.
depends on defect 0053064 closed Rajesh_18 [23Q3] Product Modifier button is not displayed in line editor 
png incorrect-price.png (18,132) 2023-04-25 11:10
https://issues.openbravo.com/file_download.php?file_id=18415&type=bug
png
Issue History
2023-04-25 11:10asier_perezNew Issue
2023-04-25 11:10asier_perezAssigned To => Retail
2023-04-25 11:10asier_perezFile Added: incorrect-price.png
2023-04-25 11:10asier_perezTriggers an Emergency Pack => No
2023-04-25 12:18asier_perezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25935#r25935
2023-04-25 12:53asier_perezSummary[23Q2] The price of a product is calculated incorrectly when editing its modifiers twice => [23Q2] The price of a product with modifiers is calculated incorrectly when editing its modifiers
2023-04-25 12:53asier_perezDescription Updatedbug_revision_view_page.php?rev_id=25939#r25939
2023-04-25 12:53asier_perezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25940#r25940
2023-07-26 13:08andre_montenegroRelationship addeddepends on 0053064
2023-08-21 09:31Rajesh_18Assigned ToRetail => Rajesh_18
2023-08-21 09:31Rajesh_18Statusnew => scheduled
2023-08-23 07:00hgbotNote Added: 0153815

Notes
(0153815)
hgbot   
2023-08-23 07:00   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2028 [^]