Openbravo Issue Tracking System - POS2
View Issue Details
0047863POS2Restaurantspublic2021-10-15 11:162021-10-26 15:34
timothee_catteeuw 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
TAPTAP 
No
0047863: JIRA 2409 - errors after copying a menu
Errors are displayed in developer mode when you want to copy a selected menu and after selecting this option for the rest of the sales process.

After using this feature, sales process is blocked in case of our client because in their version they cannot finalize sales.

This error appears in that case :

Converting circular structure to JSON --> starting at object with constructor 'HTMLDivElement' | property '__reactFiber$fryr4xmncv' -> object with constructor 'Fl' --- property 'stateNode' closes the circle

On livebuilds, errors only appears in developer mode and you can finalyze your transactions
Go to https://livebuilds.openbravo.com/retail_pos2_tap_pgsql/web/pos/?terminal=VBS-2 [^]
Login as vallblanca
go to Restaurant schema
select menu category
select grouped menu
select 4 products in that menu
Click left twice on menu appeared on ticket at left
A popup is displayed
Click '+' button once
An error is displayed in developer console :
createPersistoid.js:73 redux-persist/createPersistoid: error serializing state TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    | property '__reactFiber$dw6c00nmux' -> object with constructor 'Wl'
    --- property 'stateNode' closes the circle
    at JSON.stringify (<anonymous>)
    at p (createPersistoid.js:126)
    at y (createPersistoid.js:71)
But a second menu is correctly added to the basket
Go back to the ticket by clicking back button
Click pay
Another error is displayed in developer console
createPersistoid.js:73 redux-persist/createPersistoid: error serializing state TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'HTMLDivElement'
    | property '__reactFiber$6nfz9pt5fft' -> object with constructor 'Wl'
    --- property 'stateNode' closes the circle
    at JSON.stringify (<anonymous>)
    at p (createPersistoid.js:126)
    at y (createPersistoid.js:71)
Select cash, many errors errors are displayed in developper console
CLick, once again many errors errors are displayed in developper console
No tags attached.
blocks defect 0047860 closed jorge-garcia JIRA 2409 - errors after copying a menu 
Issue History
2021-10-15 14:21guilleaerTypedefect => backport
2021-10-15 14:22guilleaerStatusscheduled => acknowledged
2021-10-22 13:24jorge-garciaAssigned ToRetail => jorge-garcia
2021-10-22 13:25jorge-garciaStatusacknowledged => scheduled
2021-10-26 13:09jorge-garciaNote Added: 0132646
2021-10-26 15:34jorge-garciaNote Added: 0132651
2021-10-26 15:34jorge-garciaStatusscheduled => resolved
2021-10-26 15:34jorge-garciaResolutionopen => fixed
2021-10-26 15:34jorge-garciaStatusresolved => closed
2021-10-26 15:34jorge-garciaFixed in Version => TAP

Notes
(0132646)
jorge-garcia   
2021-10-26 13:09   
MR created:

https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2.restaurant/-/merge_requests/30 [^]
(0132651)
jorge-garcia   
2021-10-26 15:34   
MR merged

https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2.restaurant/-/merge_requests/30 [^]