Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039126Openbravo ERP09. Financial managementpublic2018-08-13 14:112018-09-27 18:18
ngarcia 
Sandrahuguet 
urgentmajoralways
closedfixed 
5
 
3.0PR18Q4 
AugustoMauch
Core
No
0039126: Reconciliation without lines is created if the role does not have access to business partner's organization of the payment
Reconciliation without lines is created if the role does not have access to business partner's organization of the payment
As group admin role:
   Create a new Business Partner in F&B International Group
   Create a Payment In for F&B España, S.A. and that business partner
   Add an amount and do not select any document to be paid. Leave the amount as credit
   Check the payment has been deposited in a financial account
   Go to Role window and remove F&B International Group from Organization tab for the current role
   Log out and log in

   Go to Financial Account where the payment was deposited
   Leave the Matching Algorithm empty
   Click on Reconcile
   Select the previously created payment, select Cleared checkbox, edit the Ending Balance and Reconcile

   Check a new reconciliation has been created with Completed status but the transaction related with the payment has not been included on it

   The log shows:
      ERROR org.openbravo.base.exception.OBSecurityException - Organization <id> of object (BusinessPartner(<id>) (name: A)) is not present in OrganizationList [...]
No tags attached.
related to defect 0039290 closed AtulOpenbravo Business Partner current balance is wrongly updated when using Reconciliation 
Issue History
2018-08-13 14:11ngarciaNew Issue
2018-08-13 14:11ngarciaAssigned To => Triage Finance
2018-08-13 14:11ngarciaModules => Core
2018-08-13 14:11ngarciaResolution time => 1535925600
2018-08-13 14:11ngarciaTriggers an Emergency Pack => No
2018-08-13 14:13ngarciaIssue Monitored: networkb
2018-08-14 09:11dmiguelezAssigned ToTriage Finance => AtulOpenbravo
2018-08-14 09:14AtulOpenbravoStatusnew => scheduled
2018-09-13 20:28AtulOpenbravoRelationship addedrelated to 0039290
2018-09-17 06:42AtulOpenbravoNote Added: 0106790
2018-09-27 12:10SandrahuguetAssigned ToAtulOpenbravo => Sandrahuguet
2018-09-27 12:17hgbotCheckin
2018-09-27 12:17hgbotNote Added: 0107046
2018-09-27 12:17hgbotStatusscheduled => resolved
2018-09-27 12:17hgbotResolutionopen => fixed
2018-09-27 12:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f6a34bc225f0a5e8c8c829664d4e22785574ce15 [^]
2018-09-27 16:26hudsonbotCheckin
2018-09-27 16:26hudsonbotNote Added: 0107055
2018-09-27 18:18AugustoMauchNote Added: 0107058
2018-09-27 18:18AugustoMauchStatusresolved => closed
2018-09-27 18:18AugustoMauchFixed in Version => 3.0PR18Q4
2018-09-27 18:18AugustoMauchReview Assigned To => AugustoMauch

Notes
(0106790)
AtulOpenbravo   
2018-09-17 06:42   
Test Plan

- Loign as F&B International Group admin role:
- Create a new Business Partner in F&B International Group
- Create a Payment In for F&B España, S.A. and that business partner
- Add an amount =100 and do not select any document to be paid. Leave the amount as credit
- Check the payment has been deposited in a financial account
- Go to Role window and remove F&B International Group from Organization tab for the current role
- Log out and log in
- Go to Financial Account where the payment was deposited
- Leave the Matching Algorithm empty
- Click on Reconcile button
- Select the previously created payment, select Cleared checkbox, edit the Ending Balance and Reconcile
- Check a new reconciliation has been created with Completed status and transaction related with the payment has been included in it.
(0107046)
hgbot   
2018-09-27 12:17   
Repository: erp/devel/pi
Changeset: f6a34bc225f0a5e8c8c829664d4e22785574ce15
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Thu Sep 27 12:17:44 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f6a34bc225f0a5e8c8c829664d4e22785574ce15 [^]

Fixed issue 39126 Force flush in reconciliation process

Force flush because eventhandler is executed in the first flush
and data updated in enventhandler needs to be flush in a admin mode block

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/Reconciliation.java
---
(0107055)
hudsonbot   
2018-09-27 16:26   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d8242c6b0bfe [^]
Maturity status: Test
(0107058)
AugustoMauch   
2018-09-27 18:17   
Fix reviewed and verified.

Right now there is no way that data created in an event handler is flushed within a setAdminMode block unless a flush is done immediately after