Openbravo Issue Tracking System - POS2
View Issue Details
0046261POS2POSpublic2021-04-13 17:512021-05-24 09:58
jmelin 
jorge-garcia 
highmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
marvintm
No
0046261: 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
Takeaway
depends on backport 0046390TAP 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 
depends on defect 0046407 closed javierRodriguez Manual promotions are not properly applied 
depends on feature request 0046476 closed jorge-garcia Order discount to be editable or read only 
png ticket_sample_46261.PNG (40,495) 2021-04-13 17:57
https://issues.openbravo.com/file_download.php?file_id=15526&type=bug
png
Issue History
2021-04-13 17:51jmelinNew Issue
2021-04-13 17:51jmelinAssigned To => Retail
2021-04-13 17:51jmelinTriggers an Emergency Pack => No
2021-04-13 17:56jmelinSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22311#r22311
2021-04-13 17:57jmelinFile Added: ticket_sample_46261.PNG
2021-04-13 18:00jmelinSummaryNo minus cost is applied to menu if the costs of components is less than the price of the menu => JIRA 517 - No minus cost is applied to menu if the costs of components is less than the price of the menu
2021-04-15 10:33guilleaerProposed Solution updated
2021-04-15 19:35guilleaerProposed Solution updated
2021-04-18 11:49guilleaerNote Added: 0127340
2021-04-18 11:49guilleaerTypedesign defect => defect
2021-04-22 23:05guilleaerTag Attached: Takeaway
2021-04-22 23:28guilleaerResolution time => 1619474400
2021-04-27 12:20ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-04-28 11:10jorge-garciaAssigned Toranjith_qualiantech_com => jorge-garcia
2021-04-28 11:58jorge-garciaStatusnew => scheduled
2021-04-28 12:08guilleaerStatusscheduled => resolved
2021-04-28 12:08guilleaerResolutionopen => fixed
2021-04-28 12:09guilleaerStatusresolved => closed
2021-04-28 12:09guilleaerStatusclosed => new
2021-04-28 12:09guilleaerResolutionfixed => open
2021-04-28 12:09guilleaerStatusnew => scheduled
2021-04-29 08:59jorge-garciaRelationship addeddepends on 0046407
2021-05-07 14:47javietxeIssue Monitored: javietxe
2021-05-10 13:07hgbotNote Added: 0127939
2021-05-10 13:12hgbotNote Added: 0127940
2021-05-10 15:35jorge-garciaRelationship addeddepends on 0046476
2021-05-12 15:07jorge-garciaReview Assigned To => marvintm
2021-05-24 09:54hgbotNote Added: 0128548
2021-05-24 09:54hgbotNote Added: 0128549
2021-05-24 09:58jorge-garciaStatusscheduled => resolved
2021-05-24 09:58jorge-garciaResolutionopen => fixed
2021-05-24 09:58jorge-garciaNote Added: 0128550
2021-05-24 09:58jorge-garciaStatusresolved => closed

Notes
(0127340)
guilleaer   
2021-04-18 11:49   
After internal discussion we will take this issue. Changing it to Defect.

It must be clear that with this fix we will just fix the problem reported in menus feature. WE WILL NOT FIX best deal case scenario.
(0127939)
hgbot   
2021-05-10 13:07   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/32 [^]
(0127940)
hgbot   
2021-05-10 13:12   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/444 [^]
(0128548)
hgbot   
2021-05-24 09:54   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/444 [^]
(0128549)
hgbot   
2021-05-24 09:54   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/32 [^]
(0128550)
jorge-garcia   
2021-05-24 09:58   
MR merged into master