Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033954Openbravo ERPZ. Otherspublic2016-09-12 17:332016-10-05 19:35
maite 
markmm82 
urgentmajoralways
closedfixed 
5
 
3.0PR17Q13.0PR16Q4 
aferraz
Advanced Payables and Receivables Mngmt
No
0033954: Erroneous reconciliation's balance when reactivating and deleting "intermediate" reconciliation document
Once a non-last reconciliation is reactivated and deleted, balance for next reconciliations needs to be recalculated
1. Access Financial Account "Cuenta de Banco" and reactivate non-last reconciliation
2. Run "Match Statement" process, select "Cancel" option for automatching and unmatch all lines
3. Access Reconciliations tab, verify that reconciliation has no items and delete it
4. Realize that starting balance of subsequent reconciliations has not been updated when it should
No tags attached.
Issue History
2016-09-12 17:33maiteNew Issue
2016-09-12 17:33maiteAssigned To => Triage Finance
2016-09-12 17:33maiteModules => Advanced Payables and Receivables Mngmt
2016-09-12 17:33maiteResolution time => 1475445600
2016-09-12 17:33maiteTriggers an Emergency Pack => No
2016-09-12 17:34maiteIssue Monitored: networkb
2016-09-15 11:11aferrazAssigned ToTriage Finance => AtulOpenbravo
2016-09-21 15:31aferrazAssigned ToAtulOpenbravo => markmm82
2016-09-26 17:53markmm82Statusnew => scheduled
2016-09-28 21:32markmm82Note Added: 0090358
2016-09-30 12:43hgbotCheckin
2016-09-30 12:43hgbotNote Added: 0090421
2016-09-30 12:43hgbotStatusscheduled => resolved
2016-09-30 12:43hgbotResolutionopen => fixed
2016-09-30 12:43hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a3c2fb154a29a54f46d66f73143f5126a70214ad [^]
2016-09-30 12:43hgbotCheckin
2016-09-30 12:43hgbotNote Added: 0090422
2016-09-30 12:45aferrazReview Assigned To => aferraz
2016-09-30 12:45aferrazNote Added: 0090424
2016-09-30 12:45aferrazStatusresolved => closed
2016-09-30 12:45aferrazFixed in Version => 3.0PR16Q4
2016-09-30 14:36hgbotCheckin
2016-09-30 14:36hgbotNote Added: 0090436
2016-09-30 14:36aferrazNote Deleted: 0090424
2016-09-30 14:36aferrazNote Added: 0090437
2016-09-30 19:07hudsonbotCheckin
2016-09-30 19:07hudsonbotNote Added: 0090446
2016-09-30 19:07hudsonbotCheckin
2016-09-30 19:07hudsonbotNote Added: 0090447
2016-10-05 19:35hudsonbotCheckin
2016-10-05 19:35hudsonbotNote Added: 0090503

Notes
(0090358)
markmm82   
2016-09-28 21:32   
Test Plan
1. Access Financial Account "Cuenta de Banco".
2. Go to Reconciliations tab.
3. Select a non-last reconciliation and Reactivate it.
4. Run "Match Transactions Force" process, select "Cancel" option for automatching and unmatch all lines
5. Access Reconciliations tab, verify that reconciliation has no items and delete it.
6. Realize that starting balance of subsequent reconciliations has been updated correctly.
(0090421)
hgbot   
2016-09-30 12:43   
Repository: erp/devel/pi
Changeset: a3c2fb154a29a54f46d66f73143f5126a70214ad
Author: Mark <markmm82 <at> gmail.com>
Date: Thu Sep 29 19:46:04 2016 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/a3c2fb154a29a54f46d66f73143f5126a70214ad [^]

Fixes issue 33954: Recalculated next reconciliation's balance after deletion

Once a non-last reconciliation is reactivated and deleted, balance for next reconciliations have been recalculated.

---
M modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_FIN_RECON_CHECK_TRG.xml
---
(0090422)
hgbot   
2016-09-30 12:43   
Repository: erp/devel/pi
Changeset: ed8fb0de3b970164d4ef234a0a50da194cc2efbc
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Sep 30 09:57:00 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ed8fb0de3b970164d4ef234a0a50da194cc2efbc [^]

Related to issue 33954: Code review improvements

Avoid loop and do the update with just one query.

---
M modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_FIN_RECON_CHECK_TRG.xml
---
(0090436)
hgbot   
2016-09-30 14:36   
Repository: erp/devel/pi
Changeset: 3f4dc99dd5bee7a95e4d47cb89abf6b5507d0e93
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Sep 30 14:35:09 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3f4dc99dd5bee7a95e4d47cb89abf6b5507d0e93 [^]

Related to issue 33954: Fix trigger in Oracle

Event handler has been created in order to update subsequent reconciliations balances when a reconciliation is deleted, instead of doing it in FIN_Reconciliation trigger.

---
M modules/org.openbravo.advpaymentmngt/src-db/database/model/triggers/APRM_FIN_RECON_CHECK_TRG.xml
A modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_ReconciliationEventListener.java
---
(0090437)
aferraz   
2016-09-30 14:36   
Code review + Testing OK
(0090446)
hudsonbot   
2016-09-30 19:07   
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/538700cbd709 [^]
Maturity status: Test
(0090447)
hudsonbot   
2016-09-30 19:07   
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/538700cbd709 [^]
Maturity status: Test
(0090503)
hudsonbot   
2016-10-05 19:35   
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/9f948cce366c [^]
Maturity status: Test