Openbravo Issue Tracking System - POS2
View Issue Details
0047516POS2POSpublic2021-08-09 09:352021-09-28 15:26
cberner 
jarmendariz 
normalmajorhave not tried
closedfixed 
5
 
 
No
0047516: Editing a product configuration on a duplicated menu item, will apply it always to the last one
If a product configuration is edited in a menu, with duplicated items, choosing any of this items, the configuration will still be applied to the last one, instead of the selected one.

This applies for example to beeper/pager, clicking re-assign pager in one of these cases, always results in modifying the last duplicated element, instead of the expected one.
1. Log in backoffice as White Valley Group Admin
2. Configure Pager in backoffice in Organization window.
  2.1. In backoffice -> Organization window -> Vall Blanca Store -> set in Retail Configuration -> Pager
Server URL : http://localhost:8100 [^]
3. In backoffice, go to Product window -> find Cesar Salad:
  3.1. In POS Properties, check Generate Notification
  3.2. After checking Generate Notification, at the right in Delivery Control combo box, select Pager option.
  3.3. Save the product configuration.
4. Open and log-in WebPOS, click on Settings(gear left of top-right username) and refresh masterdata.
5. Add a Grouped Menu, from Restaurant Schema, Menu category
6. Add 2 Cesar Salad and any 2 beverages (you'll be prompted to add pager to the cesar salads)
7. Click on the first cesar salad and (re)assign pager, add other code and check that the actual modified menu item is the second one, instead of the selected one.

For more context, check the screenshot attached to this issue.
No tags attached.
related to design defect 0047771 acknowledged Retail Remove usages of menuItemPosition 
png productConfigMenuItem.png (25,263) 2021-08-09 09:35
https://issues.openbravo.com/file_download.php?file_id=16085&type=bug
png
Issue History
2021-08-09 09:35cbernerNew Issue
2021-08-09 09:35cbernerAssigned To => platform
2021-08-09 09:35cbernerFile Added: productConfigMenuItem.png
2021-08-09 09:35cbernerTriggers an Emergency Pack => No
2021-08-09 10:14dmiguelezResolution time => 1630274400
2021-08-09 10:14dmiguelezStatusnew => acknowledged
2021-08-13 14:22cbernerAssigned Toplatform => cberner
2021-08-27 14:32cbernerResolution time1630274400 => 1632952800
2021-08-30 14:49jarmendarizAssigned Tocberner => jarmendariz
2021-08-30 14:49jarmendarizStatusacknowledged => scheduled
2021-08-30 19:52hgbotNote Added: 0131447
2021-09-16 17:48cbernerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23096#r23096
2021-09-28 15:26hgbotNote Added: 0132047
2021-09-28 15:26hgbotResolutionopen => fixed
2021-09-28 15:26hgbotStatusscheduled => closed
2021-09-28 15:26hgbotNote Added: 0132048
2021-09-28 17:20jarmendarizRelationship addedrelated to 0047771

Notes
(0131447)
hgbot   
2021-08-30 19:52   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/67 [^]
(0132047)
hgbot   
2021-09-28 15:26   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/67 [^]
(0132048)
hgbot   
2021-09-28 15:26   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant [^]
Changeset: 6381525c99a726c8c18f7812367368f1f231d1c8
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 2021-09-28T15:02:59+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/commit/6381525c99a726c8c18f7812367368f1f231d1c8 [^]

Fixed ISSUE-47516: When menu item is duplicated, change in config only apply to the last one

---
M web-jspack/org.openbravo.pos2.restaurant/src/components/ProductConfigurationPanel/MenuItemConfigurationButton.jsx
M web-jspack/org.openbravo.pos2.restaurant/src/model/ticket/user-actions/FinishProductConfigurationStep.js
M web-jspack/org.openbravo.pos2.restaurant/src/model/ticket/user-actions/__test__/FinishProductConfigurationStep.test.js
---