Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053031Retail ModulesReturn Receiptpublic2023-04-20 19:422023-07-24 14:44
sofidossant 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
pi 
RR23Q2.3RR23Q2.3 
No
0053031: EWI org.openbravo.base.exception.OBSecurityException: Entity Cashbook - Posets Store - EUR - PS1/0000001 - 20-04-2023 - OHS Cust
When I want to do a verify return of a cross store sale, and the lines are already returned, but I still put apply, it assigns me the customer, I go ahead and make a sale, and the next ewi is generated:

org.openbravo.base.exception.OBSecurityException: Entity Cashbook - Posets Store - EUR - PS1/0000001 - 20-04-2023 - OHS Customer - 4 - 0 - 80 (FIN_Finacc_Transaction) with organization Posets 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 Posets Store
    at org.openbravo.dal.core.OBInterceptor.checkReferencedOrganizations(OBInterceptor.java:316)
1) Open terminal
2) Search a verificate return
3) Filter for store, and search a order for a another organization(cross store).
4) The lines were returned.
5) Put applied and the customer is asigned.
6) do a sales order.
7) Check the backoffice and we can see the following ewi:

org.openbravo.base.exception.OBSecurityException: Entity Cashbook - Posets Store - EUR - PS1/0000001 - 20-04-2023 - OHS Customer - 4 - 0 - 80 (FIN_Finacc_Transaction) with organization Posets 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 Posets Store
No tags attached.
blocks defect 0052192 closed ranjith_qualiantech_com EWI org.openbravo.base.exception.OBSecurityException: Entity Cashbook - Posets Store - EUR - PS1/0000001 - 20-04-2023 - OHS Cust 
Issue History
2023-07-24 07:37ranjith_qualiantech_comTypedefect => backport
2023-07-24 07:37ranjith_qualiantech_comTarget Version => RR23Q2.3
2023-07-24 08:05hgbotNote Added: 0152811
2023-07-24 14:44hgbotResolutionopen => fixed
2023-07-24 14:44hgbotStatusscheduled => closed
2023-07-24 14:44hgbotNote Added: 0152842
2023-07-24 14:44hgbotFixed in Version => RR23Q2.3
2023-07-24 14:44hgbotNote Added: 0152843

Notes
(0152811)
hgbot   
2023-07-24 08:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/66 [^]
(0152842)
hgbot   
2023-07-24 14:44   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/66 [^]
(0152843)
hgbot   
2023-07-24 14:44   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns [^]
Changeset: 39fbe1a3eb03fa656963a81ea0988e444b95d220
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 24-07-2023 11:20:04
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/commit/39fbe1a3eb03fa656963a81ea0988e444b95d220 [^]

Fixed ISSUE-53031: VR Popup Apply should be enabled if atleast one line is selected

---
M web/org.openbravo.retail.returns/js/modalReturnLines.js
---