Openbravo Issue Tracking System - POS2
View Issue Details
0047692POS2Restaurantspublic2021-09-14 17:472021-09-16 10:29
AugustoMauch 
AugustoMauch 
normalcriticalhave not tried
closedfixed 
5
 
 
No
0047692: New restaurant menus are merged into existing ones
In a ticket that contains a restaurant menu, if a new menu of the same time is added, it will replace the original menu, even if the products selected in each of those menus are different.
In a pos2 environment that contains the restaurant module:
- Add a menu (i.e. Simple Menu with Onion Soup, Hamburguer, Beer, Cheesecake). It will added to the ticket as expected
- On the keymap, click on the same menu (i.e. Simple Menu). Notice that instead of being added to a separate line, the quantity of the original line has been increased to 2.
- Complete the creation of the new menu by selecting different products from the first one (i.e. Cesar Salad, Carbonara Pizza, Water, Brownie. Notice that the ticket still contains only one line with quantity=2, and the products included in the original menu have been lost

See attached video to see it in action.
No tags attached.
depends on backport 0047693TAP closed Retail New restaurant menus are merged into existing ones 
gif WrongMergedMenu.gif (589,785) 2021-09-14 17:49
https://issues.openbravo.com/file_download.php?file_id=16196&type=bug
Issue History
2021-09-14 17:47AugustoMauchNew Issue
2021-09-14 17:47AugustoMauchAssigned To => Retail
2021-09-14 17:47AugustoMauchTriggers an Emergency Pack => No
2021-09-14 17:47AugustoMauchStatusnew => scheduled
2021-09-14 17:49AugustoMauchFile Added: WrongMergedMenu.gif
2021-09-15 11:20dmiguelezAssigned ToRetail => AugustoMauch
2021-09-15 13:08hgbotNote Added: 0131817
2021-09-16 10:29hgbotResolutionopen => fixed
2021-09-16 10:29hgbotStatusscheduled => closed
2021-09-16 10:29hgbotNote Added: 0131859
2021-09-16 10:29hgbotNote Added: 0131860

Notes
(0131817)
hgbot   
2021-09-15 13:08   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/72 [^]
(0131860)
hgbot   
2021-09-16 10:29   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/72 [^]
(0131859)
hgbot   
2021-09-16 10:29   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant [^]
Changeset: 793941e0e25b2854b9f04f0233231a0a52cef41e
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 2021-09-16T10:26:28+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/commit/793941e0e25b2854b9f04f0233231a0a52cef41e [^]

Fixes ISSUE-47692: New restaurant menus are merged into existing ones

Now when adding an empty menu to the ticket, the menu is added to a separate line

---
M web-jspack/org.openbravo.pos2.restaurant/src/model/user-interface/user-actions/AddProductHooks.js
---