Openbravo Issue Tracking System - POS2
View Issue Details
0052431POS2POSpublic2023-05-12 10:232023-05-22 18:26
ngarcia 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
23Q3 
No
0052431: 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

I get the following error in livebuilds:

org.openbravo.base.exception.OBSecurityException: Entity Cashbook - Vall Boi - EUR - VB1/0000002 - 12-05-2023 - OHS Customer - -3.60 - 3.60 - 20 (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

The customer gets a different error:

EWI org.openbravo.base.exception.OBSecurityException: Entity ... (OrderLine) with organization ... references an entity ... through its property OrderLine.goodsShipmentLine but this referenced entity belongs to an organization ... which is not part of the natural tree of ...
In the backoffice:

Add a record in Organization - Schemas subtab to Orhi Store and Vallboi Store organizations. Copy the values from Vallblanca store
Set the Web POS Save Removed Tickets preference to Y

Access to https://livebuilds.openbravo.com/retail_pos2_pgsql/web/pos/?terminal=OS-1 [^] with orhi user

Add a product
Pay it
Done

Access to https://livebuilds.openbravo.com/retail_pos2_pgsql/web/pos/?terminal=VB-1 [^]

Look for the previously created order in Orders menu
Select it
Click on Verified Returns
Select the line
Delete the line

Add a product
Return Line
Refund
Done

Check the order goes to Errors While Importing POS Data
No tags attached.
related to defect 0051588 closed ranjith_qualiantech_com Retail Modules Order goes to Errors While Importing POS Data with OBSecurityException if cross-store return line is deleted 
related to defect 0045013 closed ranjith_qualiantech_com Retail Modules Cross Store Return stuck in the Errors While Importing can not be processed again 
related to defect 0053590 closed Rajesh_18 POS2 Order goes to Errors While Importing POS Data with OBSecurityException if cross-store return line is deleted 
Issue History
2023-05-12 10:23ngarciaNew Issue
2023-05-12 10:23ngarciaAssigned To => Retail
2023-05-12 10:23ngarciaTriggers an Emergency Pack => No
2023-05-12 10:24ngarciaRelationship addedrelated to 0051588
2023-05-17 07:46ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-05-17 09:39ranjith_qualiantech_comStatusnew => scheduled
2023-05-18 09:10hgbotNote Added: 0149922
2023-05-22 18:26hgbotResolutionopen => fixed
2023-05-22 18:26hgbotStatusscheduled => closed
2023-05-22 18:26hgbotFixed in Version => 23Q3
2023-05-22 18:26hgbotNote Added: 0150102
2023-05-22 18:26hgbotNote Added: 0150103
2023-06-28 14:48rafarodaRelationship addedrelated to 0045013
2023-10-04 12:22ngarciaRelationship addedrelated to 0053590

Notes
(0149922)
hgbot   
2023-05-18 09:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1815 [^]
(0150102)
hgbot   
2023-05-22 18:26   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 01b55d74352dafc2269b322c1a5e9524d5cdd043
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 22-05-2023 16:26:46
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/01b55d74352dafc2269b322c1a5e9524d5cdd043 [^]

Fixed ISSUE-52431: Added terminal info in payload when deleting ticket line

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLinePopover/__test__/TicketLinePopover.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketPopover/__test__/TicketPopover.test.jsx
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/AddProduct.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/__test__/DeleteLine.test.js
M web-jspack/org.openbravo.pos2/src/model/ticket/user-actions/DeleteLine.js
---
(0150103)
hgbot   
2023-05-22 18:26   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1815 [^]