Openbravo Issue Tracking System - POS2
View Issue Details
0049515POS2Restaurantspublic2022-06-08 18:512022-06-16 15:35
guilleaer 
Retail 
normalcriticalhave not tried
closedfixed 
5
 
 
No
0049515: Menu item product image are being added to the state and sent to backoffice when an order is processed
Menu item product image are being added to the state and sent to backoffice when an order is processed
In live builds - POS2-modules
Connect to backoffice and open product window and search for product "Cheese burger"
Add an image to it and save
logout

Login in POS2-modules (demouser/openbravo)
In main window move to restaurant schema (top right selector)
Select "Best Sellers" categry in keymap
Right clic on cheese burger to ensure that image is shown (If not refresh master data)
Select "Menu" categry in keymap
Press simple menu
Select cesar Salad
Select cheeseburger (now, well done)
Select Beer 0.5L
Select Brownie

Open developer tools console and execute:
OB.App.State.getState().Ticket.lines[0].menuItems[1].product.img

img info is there

Pay the order and look to orderLoader request payload

img info is there





Img information should not be part of the state / orderloader request
No tags attached.
has duplicate defect 0049497 closed Retail JIRA 3060 - OrderLoader - img data are still sent in order data (menu components) 
png Selection_678.png (82,392) 2022-06-08 18:51
https://issues.openbravo.com/file_download.php?file_id=17134&type=bug
png

png Selection_679.png (115,395) 2022-06-08 18:51
https://issues.openbravo.com/file_download.php?file_id=17135&type=bug
png

png Selection_680.png (61,987) 2022-06-08 18:51
https://issues.openbravo.com/file_download.php?file_id=17136&type=bug
png

png Selection_681.png (76,408) 2022-06-08 18:52
https://issues.openbravo.com/file_download.php?file_id=17137&type=bug
png
Issue History
2022-06-08 18:51guilleaerNew Issue
2022-06-08 18:51guilleaerAssigned To => Retail
2022-06-08 18:51guilleaerFile Added: Selection_678.png
2022-06-08 18:51guilleaerTriggers an Emergency Pack => No
2022-06-08 18:51guilleaerFile Added: Selection_679.png
2022-06-08 18:51guilleaerFile Added: Selection_680.png
2022-06-08 18:52guilleaerFile Added: Selection_681.png
2022-06-13 13:28guilleaerRelationship addedhas duplicate 0049497
2022-06-16 11:43hgbotNote Added: 0138401
2022-06-16 15:35hgbotResolutionopen => fixed
2022-06-16 15:35hgbotStatusnew => closed
2022-06-16 15:35hgbotNote Added: 0138431
2022-06-16 15:35hgbotNote Added: 0138432

Notes
(0138401)
hgbot   
2022-06-16 11:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/154 [^]
(0138431)
hgbot   
2022-06-16 15:35   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant [^]
Changeset: fd55966fd63a1e936b3504cc9e09926ea2972d88
Author: Javier Rodríguez Regueiro <javier.rodriguez@openbravo.com>
Date: 16-06-2022 13:35:23
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/commit/fd55966fd63a1e936b3504cc9e09926ea2972d88 [^]

Fixed ISSUE-49515: Remove imgages from state and sync in menuItems

---
M web-jspack/org.openbravo.pos2.restaurant/src/model/ticket/utils/updateMenu.js
---
(0138432)
hgbot   
2022-06-16 15:35   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/154 [^]