Openbravo Issue Tracking System - Retail Modules
View Issue Details
0052281Retail ModulesRetail APIpublic2023-04-27 14:012023-05-03 09:26
azzeddine_meftoh 
Triage Platform Conn 
normalmajorhave not tried
closedfixed 
5
 
 
No
0052281: EDL request (push API RETAPCO_OrderCreation) failing for cross store returns
when doing cross store returns if the user in the pos does not have access (role/ org access) to the original ticket organization the EDL request fails with the error : Could not export data for record with ID XXXXXXXXXXXXXXXXXXXX
config :
- event subscription 'Web POS Order Creation' active
- POS user X has a role that can access only organization store A

Steps :
- user X connected on a POS on organization A
- do a cross store return on a sale order done on organization store B
- EDL request created but in error : Could not export data for record with ID XXXXXXXXXXXXXXXXXXXX

No tags attached.
related to defect 0051927 closed caristu Web POS Order Creation event is not fired for cross store returns 
Issue History
2023-04-27 14:01azzeddine_meftohNew Issue
2023-04-27 14:01azzeddine_meftohAssigned To => Triage Platform Conn
2023-04-27 14:01azzeddine_meftohTriggers an Emergency Pack => No
2023-04-27 14:03rafarodaRelationship addedrelated to 0051927
2023-04-28 14:52hgbotNote Added: 0149080
2023-05-03 09:26hgbotResolutionopen => fixed
2023-05-03 09:26hgbotStatusnew => closed
2023-05-03 09:26hgbotNote Added: 0149178
2023-05-03 09:26hgbotNote Added: 0149179

Notes
(0149080)
hgbot   
2023-04-28 14:52   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/144 [^]
(0149178)
hgbot   
2023-05-03 09:26   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 5dbc7accdfd73895de18b9cd2f50cd18c9e659a4
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 03-05-2023 07:16:29
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/5dbc7accdfd73895de18b9cd2f50cd18c9e659a4 [^]

fixes BUG-52281: when exporting records to the ext system don't apply the org filter

  Do not apply the organization filter when exporting the records to be
sent to the external system. As we are exporting them by ID this is
somehow consistent with what we do for finding the records to be
exported (see [1]).

  With this we solve the particular case of exporting a cross
organization return when the role has not access to the organization of
the original sale.

[1] https://issues.openbravo.com/view.php?id=51927 [^]

---
M src/org/openbravo/api/edl/ApiEventItemProcessor.java
---
(0149179)
hgbot   
2023-05-03 09:26   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/144 [^]