Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053032Retail ModulesReturn Receiptpublic2023-04-20 19:422023-07-24 14:44
sofidossant 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
pi 
RR23Q1.4RR23Q1.4 
No
0053032: 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 => RR23Q1.4
2023-07-24 08:05hgbotNote Added: 0152810
2023-07-24 14:44hgbotResolutionopen => fixed
2023-07-24 14:44hgbotStatusscheduled => closed
2023-07-24 14:44hgbotNote Added: 0152844
2023-07-24 14:44hgbotFixed in Version => RR23Q1.4
2023-07-24 14:44hgbotNote Added: 0152845

Notes
(0152810)
hgbot   
2023-07-24 08:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/65 [^]
(0152844)
hgbot   
2023-07-24 14:44   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/65 [^]
(0152845)
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: babab1b6dd8ef0c7e503dd98a676282a7b306177
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 24-07-2023 11:21:08
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.returns/-/commit/babab1b6dd8ef0c7e503dd98a676282a7b306177 [^]

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

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