Openbravo Issue Tracking System - POS2
View Issue Details
0048947POS2POSpublic2022-03-31 15:312022-05-17 23:05
timothee_catteeuw 
ablasco 
normalcriticalsometimes
closedfixed 
5
 
 
No
0048947: JIRA 2845 - Error when trying to import a sale in “Error while importing POS data”
If you reopended an order with a menu , review payment and click on the “Done” button

Then a “Order” message is sent to the BO and fails in error in “Error while importing POS data” with the message below:
org.codehaus.jettison.json.JSONException: JSONArray[0] not found.
at org.codehaus.jettison.json.JSONArray.get(JSONArray.java:174)
at org.codehaus.jettison.json.JSONArray.getJSONObject(JSONArray.java:266)
at org.openbravo.pos2.restaurant.hook.AddMenuItemsToLine.addMenuItem(AddMenuItemsToLine.java:76)
at org.openbravo.pos2.restaurant.hook.AddMenuItemsToLine.exec(AddMenuItemsToLine.java:63)
....
Connect to POS VBS-2
Create an order with a menu and finalize it
Go to "Orders" window and open the previous order
Click on "Review payments"
Click on "Done" button

Connect to BO and open window "Error while importing POS data"
=> KO, you have an error "org.codehaus.jettison.json.JSONException: JSONArray[0] not found."
No tags attached.
? 2022-05-04_15-23-53.mp4 (1,295,728) 2022-05-04 15:27
https://issues.openbravo.com/file_download.php?file_id=16974&type=bug
Issue History
2022-03-31 15:31timothee_catteeuwNew Issue
2022-03-31 15:31timothee_catteeuwAssigned To => Retail
2022-03-31 15:31timothee_catteeuwTriggers an Emergency Pack => No
2022-03-31 15:34timothee_catteeuwDescription Updatedbug_revision_view_page.php?rev_id=23838#r23838
2022-05-04 15:27jmelinDescription Updatedbug_revision_view_page.php?rev_id=24008#r24008
2022-05-04 15:27jmelinSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24010#r24010
2022-05-04 15:27jmelinFile Added: 2022-05-04_15-23-53.mp4
2022-05-09 09:16AugustoMauchAssigned ToRetail => meriem_azaf
2022-05-09 09:16AugustoMauchStatusnew => acknowledged
2022-05-13 11:40hgbotNote Added: 0137262
2022-05-17 09:11guilleaerStatusacknowledged => scheduled
2022-05-17 11:20AugustoMauchAssigned Tomeriem_azaf => ablasco
2022-05-17 17:55hgbotNote Added: 0137396
2022-05-17 23:05AugustoMauchStatusscheduled => resolved
2022-05-17 23:05AugustoMauchResolutionopen => fixed
2022-05-17 23:05AugustoMauchStatusresolved => closed

Notes
(0137262)
hgbot   
2022-05-13 11:40   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/143 [^]
(0137396)
hgbot   
2022-05-17 17:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/143 [^]