Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051588Retail ModulesWeb POSpublic2023-02-14 10:342023-03-21 13:38
ngarcia 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR23Q2 
marvintm
No
0051588: Order goes to Errors While Importing POS Data with OBSecurityException if cross-store return line is deleted
Order goes to Errors While Importing POS Data with OBSecurityException if cross-store return line is deleted
In https://livebuilds.openbravo.com/retail_pi_pgsql/ [^]

Set the Web POS Save Removed Tickets preference to Y

In https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=OS-1#retail.pointofsale [^]

Create a ticket, add a product and pay it

In https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VB-1 [^]

Open Verified Returns
Advanced Filter
Store: (All Stores)
Apply Filters

Select previously created order and add its line

Select the line and delete it

Add a product and pay it

Check in the backoffice the order is stuck in Errors While Importing POS Data with the following error:

org.openbravo.base.exception.OBSecurityException: Entity Cashbook - Vall Boi - EUR - VB1/0000003 - 14-02-2023 - OHS Customer - 5.00 - 0 - 30 (FIN_Finacc_Transaction) with organization Vall Boí Store references an entity OHS Customer through its property FIN_Finacc_Transaction.businessPartner but this referenced entity belongs to an organization Orhi Store which is not part of the natural tree of Vall Boí Store

Repeat the process by selecting Arturo Montoro business partner

In this case, the error is different:

org.openbravo.base.exception.OBSecurityException: Entity VB1/0000004 - 14-02-2023 - 5.00 - 20 - 0.00 (OrderLine) with organization Vall Boí Store references an entity 500002 - 14-02-2023 - Arturo Montoro - 10 - Adhesive body warmers - 1 through its property OrderLine.goodsShipmentLine but this referenced entity belongs to an organization Orhi Store which is not part of the natural tree of Vall Boí Store
No tags attached.
related to defect 0040741 closed collazoandy4 Retail Modules Error while importing in Cross Store Returns after delete a line 
related to defect 0052192 closed ranjith_qualiantech_com Retail Modules EWI org.openbravo.base.exception.OBSecurityException: Entity Cashbook - Posets Store - EUR - PS1/0000001 - 20-04-2023 - OHS Cust 
related to defect 0052431 closed ranjith_qualiantech_com POS2 Order goes to Errors While Importing POS Data with OBSecurityException if cross-store return line is deleted 
causes defect 0052191 closed ranjith_qualiantech_com Retail Modules EWI org.codehaus.jettison.json.JSONException: JSONObject["deletedLines"] is not a JSONArray. 
Issue History
2023-02-14 10:34ngarciaNew Issue
2023-02-14 10:34ngarciaAssigned To => Retail
2023-02-14 10:34ngarciaTriggers an Emergency Pack => No
2023-02-14 10:34ngarciaRelationship addedrelated to 0040741
2023-02-14 10:38ngarciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25536#r25536
2023-02-14 10:38ngarciaProposed Solution updated
2023-02-24 06:12ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-02-24 06:12ranjith_qualiantech_comStatusnew => scheduled
2023-03-01 06:01hgbotNote Added: 0147143
2023-03-10 07:38hgbotResolutionopen => fixed
2023-03-10 07:38hgbotStatusscheduled => closed
2023-03-10 07:38hgbotFixed in Version => RR23Q2
2023-03-10 07:38hgbotNote Added: 0147432
2023-03-10 07:38hgbotNote Added: 0147433
2023-03-18 07:31ranjith_qualiantech_comNote Added: 0147668
2023-03-18 07:31ranjith_qualiantech_comStatusclosed => new
2023-03-18 07:31ranjith_qualiantech_comResolutionfixed => open
2023-03-18 07:31ranjith_qualiantech_comFixed in VersionRR23Q2 =>
2023-03-18 07:31ranjith_qualiantech_comStatusnew => scheduled
2023-03-18 07:32hgbotNote Added: 0147669
2023-03-20 17:15hgbotNote Added: 0147717
2023-03-21 08:01hgbotResolutionopen => fixed
2023-03-21 08:01hgbotStatusscheduled => closed
2023-03-21 08:01hgbotNote Added: 0147738
2023-03-21 08:01hgbotFixed in Version => RR23Q2
2023-03-21 08:01hgbotNote Added: 0147739
2023-03-21 11:09ngarciaNote Added: 0147743
2023-03-21 11:09ngarciaStatusclosed => new
2023-03-21 11:09ngarciaResolutionfixed => open
2023-03-21 11:09ngarciaFixed in VersionRR23Q2 =>
2023-03-21 13:38marvintmStatusnew => scheduled
2023-03-21 13:38marvintmStatusscheduled => resolved
2023-03-21 13:38marvintmFixed in Version => RR23Q2
2023-03-21 13:38marvintmResolutionopen => fixed
2023-03-21 13:38marvintmReview Assigned To => marvintm
2023-03-21 13:38marvintmNote Added: 0147758
2023-03-21 13:38marvintmStatusresolved => closed
2023-04-21 10:01ngarciaRelationship addedrelated to 0052192
2023-04-24 08:24ranjith_qualiantech_comRelationship addedcauses 0052191
2023-05-12 10:24ngarciaRelationship addedrelated to 0052431

Notes
(0147143)
hgbot   
2023-03-01 06:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1082 [^]
(0147432)
hgbot   
2023-03-10 07:38   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1082 [^]
(0147433)
hgbot   
2023-03-10 07:38   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: a7ef50c14f5520b43ea4d327ac2ec60fa3d6699b
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 10-03-2023 06:37:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/a7ef50c14f5520b43ea4d327ac2ec60fa3d6699b [^]

Fixed ISSUE-51588: Reset ticket properties when deleting cross store lines in VR

---
M web-test/model/business-object/ticket/actions/DeleteLine.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteLine.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0147668)
ranjith_qualiantech_com   
2023-03-18 07:31   
Issue will be reproduced, if Pref. "Web POS Save Removed Tickets" is enabled
(0147669)
hgbot   
2023-03-18 07:32   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 712696f92c77a60170bc116d356015a1777a31f1
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 18-03-2023 12:02:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/712696f92c77a60170bc116d356015a1777a31f1 [^]

Revert "ISSUE-51588: Reset ticket properties when deleting cross store lines in VR"

This reverts commit a7ef50c14f5520b43ea4d327ac2ec60fa3d6699b.

---
M web-test/model/business-object/ticket/actions/DeleteLine.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteLine.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0147717)
hgbot   
2023-03-20 17:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1107 [^]
(0147738)
hgbot   
2023-03-21 08:01   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1107 [^]
(0147739)
hgbot   
2023-03-21 08:01   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 88694b5b41093f5fdc824cafe373a351923fed3c
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 21-03-2023 07:00:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/88694b5b41093f5fdc824cafe373a351923fed3c [^]

Fixed ISSUE-51588: Reset ticket properties when deleting cross store lines in VR

---
M web-test/model/business-object/ticket/actions/DeleteLine.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteLine.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0147743)
ngarcia   
2023-03-21 11:09   
Still reproduced in livebuilds
(0147758)
marvintm   
2023-03-21 13:38   
That's because it was merged just today, it will appear in live builds tomorrow.