Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045013Retail ModulesWeb POSpublic2020-09-09 10:572023-06-28 14:48
maite 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR20Q4 
No
0045013: Cross Store Return stuck in the Errors While Importing can not be processed again
It is not possible to Save again a cross store return that, for any reason, is stuck in the EWI window. When trying to save it again following error is raised:

org.openbravo.base.exception.OBSecurityException: Entity 1119 - Order - 1124001 (C_IMPORT_ENTRY) with organization 1119 references an entity 1124001 through its property C_IMPORT_ENTRY.oBPOSPOSTerminal but this referenced entity belongs to an organization 1124 which is not part of the natural tree of 1119

The problem is in POSImportEntryProcessor.java, line 111: the record stuck in EWI does not have the "content" section (which is present when the json is synchronized from the terminal) with the terminal's organization. So the "Save Again" process takes the organization from the "data" section, which contains the original's ticket organization (not the terminal's organization)
0. Log into OS-1 terminal, which has Cross Store functionality enabled
1. Press on Verified Return option, press on Advance Filters and select tickets from VallBlanca organization
2. Ensure that the return ticket is stuck in EWI (for example, in local, I raised an exception in the OrderLoader)
3. Access to backoffice, go to Errors While Importing POS Data window and press Save Again. The error will appear and will not be possible to reprocess the record
NOR
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 
Issue History
2020-09-09 10:57maiteNew Issue
2020-09-09 10:57maiteAssigned To => Retail
2020-09-09 10:57maiteResolution time => 1601416800
2020-09-09 10:57maiteTriggers an Emergency Pack => No
2020-09-09 10:57maiteIssue Monitored: maite
2020-09-09 10:57maiteIssue End Monitor: maite
2020-09-09 10:57maiteIssue Monitored: networkb
2020-09-14 09:21ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-09-16 06:07ranjith_qualiantech_comStatusnew => scheduled
2020-09-17 04:55hgbotNote Added: 0123120
2020-09-18 09:49hgbotResolutionopen => fixed
2020-09-18 09:49hgbotStatusscheduled => closed
2020-09-18 09:49hgbotNote Added: 0123198
2020-09-18 09:49hgbotFixed in Version => RR20Q4
2020-09-18 09:49hgbotNote Added: 0123199
2020-12-20 21:02rafarodaTag Attached: NOR
2023-06-28 14:48rafarodaRelationship addedrelated to 0052431

Notes
(0123120)
hgbot   
2020-09-17 04:55   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/101 [^]
(0123198)
hgbot   
2020-09-18 09:49   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/101 [^]
(0123199)
hgbot   
2020-09-18 09:49   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 806b73ca4e4088e8834e79cd6bbc5ecde58d1598
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-09-17T15:38:26+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/806b73ca4e4088e8834e79cd6bbc5ecde58d1598 [^]

Fixed ISSUE-45013: POS Organization should be used to create Import Entry Organzation
* Import Entry should be created with POS Org instead of ticket Org

---
M src/org/openbravo/retail/posterminal/importprocess/POSImportEntryProcessor.java
---