Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046390
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[POS2] POSmajoralways2021-04-13 17:512021-05-24 13:02
ReporterjmelinView Statuspublic 
Assigned Tojorge-garcia 
PriorityhighResolutionfixedFixed in VersionTAP
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionTAP
OSLinux 64 bitDatabasePostgreSQLJava version7.x
OS VersionOpenbravo Appliance 14.04Database version9.3.xAnt version1.9.x
Product VersionSCM revision 
Review Assigned Tojorge-garcia
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0046390: JIRA 517 - No minus cost is applied to menu if the costs of components is less than the price of the menu

DescriptionIn 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 [^]
Steps To ReproducePre-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
Proposed SolutionAdd 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0046261 closedjorge-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 closedjorge-garcia Order discount to be editable or read only 

-  Notes
(0128556)
jorge-garcia (reporter)
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 (reporter)
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 [^]

- Issue History
Date Modified Username Field Change
2021-04-28 12:09 guilleaer Type defect => backport
2021-04-28 12:09 guilleaer Target Version => TAP
2021-05-12 13:18 jorge-garcia Relationship added blocks 0046640
2021-05-24 13:01 jorge-garcia Note Added: 0128556
2021-05-24 13:01 jorge-garcia Status scheduled => resolved
2021-05-24 13:01 jorge-garcia Resolution open => fixed
2021-05-24 13:02 jorge-garcia Review Assigned To => jorge-garcia
2021-05-24 13:02 jorge-garcia Note Added: 0128557
2021-05-24 13:02 jorge-garcia Status resolved => closed
2021-05-24 13:02 jorge-garcia Fixed in Version => TAP


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker