Openbravo Issue Tracking System - POS2
View Issue Details
0046390POS2POSpublic2021-04-13 17:512021-05-24 13:02
jmelin 
jorge-garcia 
highmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
TAPTAP 
jorge-garcia
No
0046390: JIRA 517 - No minus cost is applied to menu if the costs of components is less than the price of the menu
In the description of restaurant menu, it is expected to have a "minus cost" that can apply if the cost of each component is less than the price of the menu.
It is not allowed to sell a menu to price higher than each component.

For example: price of a menu with 2 components is 10€.
Price of component A is 4
Price of component B is 5
As A+B=9<10 then a redemption of 1€ must be applied and the customer pay the menu only 9€


This was initially described in "Discount Menu matching
"
https://docs.google.com/document/d/19gQvAJO2mnRwwqSRtOiJURiZM8Nx3p6A0gwhSglfNIU/edit#heading=h.hl5d168l5fgm [^]
Pre-requisites:
In the backoffice, using user Openbravo and role "The white valley group admin".
In window "Price List", for "Price List"="The White Valley Group Sale Price List"
I change the price of menu "Simple menu" to 20

On the POS VBS-2
Scenario 1:
Add a menu "Simple menu" => Price is 20
Select the 4 component "Onion Soup", "Cheeseburger", "Orange juice" and "Fruit"
As Total of items is 11,5 => A line should added with a redemption "in favor of the customer" of 9,5

Scenario 2:
Auto-discovery is enabled
Select the 4 products "Onion Soup", "Cheeseburger", "Orange juice" and "Fruit"
As product are component of "simple menu" => a menu is added with price of 20
As total of items is 11,5 => A line should added with a redemption "in favor of the customer" of 9,5
Add config in org to use a manual discount
Manual discount should allow to hide it from UI
Price indiv product < menu -> apply discount to match with sum of indiv products
then discounts are applied

With this fix we will not address the topic about best deal case, we will just control the scenario explained above
No tags attached.
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 
blocks backport 0046640TAP closed jorge-garcia Order discount to be editable or read only 
Issue History
2021-04-28 12:09guilleaerTypedefect => backport
2021-04-28 12:09guilleaerTarget Version => TAP
2021-05-12 13:18jorge-garciaRelationship addedblocks 0046640
2021-05-24 13:01jorge-garciaNote Added: 0128556
2021-05-24 13:01jorge-garciaStatusscheduled => resolved
2021-05-24 13:01jorge-garciaResolutionopen => fixed
2021-05-24 13:02jorge-garciaReview Assigned To => jorge-garcia
2021-05-24 13:02jorge-garciaNote Added: 0128557
2021-05-24 13:02jorge-garciaStatusresolved => closed
2021-05-24 13:02jorge-garciaFixed in Version => TAP

Notes
(0128556)
jorge-garcia   
2021-05-24 13:01   
MR created

https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2.restaurant/-/merge_requests/5 [^]
https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2/-/merge_requests/27 [^]
(0128557)
jorge-garcia   
2021-05-24 13:02   
MR merged

https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2.restaurant/-/commit/bb9d4f89a9aae35dd31208f835e76ef6514e57d9 [^]
https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2/-/commit/66f4ce09480200a8c83d0df96bee101c8a4d6665 [^]