Openbravo Issue Tracking System - POS2
View Issue Details
0047915POS2POSpublic2021-10-22 09:542021-10-27 14:39
jmelin 
prakashmurugesan88 
highmajoralways
closedfixed 
5
 
 
No
0047915: JIRA 2435 - Discounts - Price of the menu with discount menu offert
When applying a discount to the order (not selected lines), the discount is correctly applied and the new total price is correct, but in the sales window :
- the price of product don't change
- the price of menu is price - discount part of the line

In Backend;
At organization level, check "Show order discount in a separate section"
Create a discount of type "Variable Discount per Total Amount".

On the POS:
Refresh
Create an order with a menu and some products
Ex:
Menu = 5.95
Product A = 1.35
Product B = 1.20
Total = 8.5

Select and apply the previous discount
For example, the discount is price of the menu = 5.95
New total = 2.55 => OK

But in the sales window, it displays:
Menu = 1.74
Product A = 1.35
Product B = 1.20
=> KO

Expected behavior
Menu = 5.95
Product A = 1.35
Product B = 1.20
Discount = 5.95 (order level)
Total = 2.55



No tags attached.
depends on backport 0047924TAP closed prakashmurugesan88 JIRA 2435 - Discounts - Price of the menu with discount menu offert 
Issue History
2021-10-22 09:54jmelinNew Issue
2021-10-22 09:54jmelinAssigned To => Retail
2021-10-22 09:54jmelinTriggers an Emergency Pack => No
2021-10-22 13:40guilleaerStatusnew => scheduled
2021-10-22 13:40guilleaerAssigned ToRetail => prakashmurugesan88
2021-10-26 11:22hgbotNote Added: 0132633
2021-10-27 14:39hgbotResolutionopen => fixed
2021-10-27 14:39hgbotStatusscheduled => closed
2021-10-27 14:39hgbotNote Added: 0132686
2021-10-27 14:39hgbotNote Added: 0132687

Notes
(0132633)
hgbot   
2021-10-26 11:22   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/89 [^]
(0132686)
hgbot   
2021-10-27 14:39   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant [^]
Changeset: a95246257daa7d53f740adab974b1b5a7cab50fd
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-10-27T12:32:39+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/commit/a95246257daa7d53f740adab974b1b5a7cab50fd [^]

Fixed BUG-47915: Fixes menu product price issue when ApplyTicketDiscountsToOrder is true
* when ApplyTicketDiscountsToOrder is true, discounts of type discount per total amount
should be shown at ticket summary and product price should be price without discount.
* But for menu product price it shows price with discount.
* Fixed by displaying grossUnitAmountWithoutTicketDiscounts when ApplyTicketDiscountsToOrder is true

---
M web-jspack/org.openbravo.pos2.restaurant/src/components/TicketMenuLine/TicketMenuPrice/TicketMenuPrice.jsx
M web-jspack/org.openbravo.pos2.restaurant/src/components/TicketMenuLine/TicketMenuPrice/__test__/TicketMenuPrice.test.jsx
---
(0132687)
hgbot   
2021-10-27 14:39   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/89 [^]