Openbravo Issue Tracking System - POS2
View Issue Details
0053590POS2POSpublic2023-10-04 12:222023-11-02 11:49
ngarcia 
Rajesh_18 
urgentmajoralways
closedfixed 
5
 
 
No
0053590: 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 ... (FIN_Finacc_Transaction) with organization A references an entity ... through its property FIN_Finacc_Transaction.businessPartner but this referenced entity belongs to an organization B which is not part of the natural tree of A

The customer gets a different error:

org.openbravo.base.exception.OBSecurityException: Entity ... (OrderLine) with organization A references an entity ... through its property OrderLine.goodsShipmentLine but this referenced entity belongs to an organization B which is not part of the natural tree of A
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
Add a new product
Try to pay it

Check the following error message is shown:

All receipt lines must belong to same store

Remove the return line
Pay it

Check the order goes to Errors While Importing POS Data
No tags attached.
related to defect 0052431 closed ranjith_qualiantech_com Order goes to Errors While Importing POS Data with OBSecurityException if cross-store return line is deleted 
Issue History
2023-10-04 12:22ngarciaNew Issue
2023-10-04 12:22ngarciaAssigned To => Retail
2023-10-04 12:22ngarciaTriggers an Emergency Pack => No
2023-10-04 12:22ngarciaRelationship addedrelated to 0052431
2023-10-05 09:41Rajesh_18Assigned ToRetail => Rajesh_18
2023-10-05 09:42Rajesh_18Statusnew => scheduled
2023-10-09 10:59hgbotNote Added: 0155663
2023-10-30 07:37hgbotNote Added: 0156462
2023-10-30 07:37hgbotResolutionopen => fixed
2023-10-30 07:37hgbotStatusscheduled => closed
2023-10-30 07:37hgbotFixed in Version => RR24Q1
2023-10-30 07:37hgbotNote Added: 0156463
2023-10-30 12:11hgbotNote Added: 0156489
2023-10-30 12:12marvintmNote Added: 0156490
2023-10-30 12:12marvintmStatusclosed => new
2023-10-30 12:12marvintmResolutionfixed => open
2023-10-30 12:12marvintmFixed in VersionRR24Q1 =>
2023-11-01 06:23Rajesh_18Statusnew => scheduled
2023-11-02 11:41hgbotNote Added: 0156612
2023-11-02 11:49hgbotResolutionopen => fixed
2023-11-02 11:49hgbotStatusscheduled => closed
2023-11-02 11:49hgbotFixed in Version => RR24Q1
2023-11-02 11:49hgbotNote Added: 0156613
2023-11-02 11:49hgbotNote Added: 0156614

Notes
(0155663)
hgbot   
2023-10-09 10:59   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1379 [^]
(0156462)
hgbot   
2023-10-30 07:37   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1379 [^]
(0156463)
hgbot   
2023-10-30 07:37   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: c571434ee2faad283baf6f2c0b3191e7d3882e5a
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 30-10-2023 06:37:18
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c571434ee2faad283baf6f2c0b3191e7d3882e5a [^]

Fixes ISSUE-53590: Reset ticket properties when switched from cross-store to noncross-store

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteLine.js
---
(0156489)
hgbot   
2023-10-30 12:11   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 9090ae584d4c522cc64c0daa996fc9227c91e3db
Author: Antonio Moreno <antonio.moreno@openbravo.com>
Date: 30-10-2023 12:11:42
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/9090ae584d4c522cc64c0daa996fc9227c91e3db [^]

Related to ISSUE-53590: reverted commit as it was affecting integration

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteLine.js
---
(0156490)
marvintm   
2023-10-30 12:12   
Reverted fix as it was causing problems in integration
(0156612)
hgbot   
2023-11-02 11:41   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1404 [^]
(0156613)
hgbot   
2023-11-02 11:49   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 36fc0c2c99c0717013b2a2f9c5ebb54f6916aa94
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 02-11-2023 16:09:50
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/36fc0c2c99c0717013b2a2f9c5ebb54f6916aa94 [^]

Fixed ISSUE-53590: Reset ticket properties when switched from cross-store to noncross-store

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/DeleteLine.js
---
(0156614)
hgbot   
2023-11-02 11:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1404 [^]