Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028452Openbravo ERP09. Financial managementpublic2014-12-18 17:222015-02-04 20:34
maite 
reinaldoguerra 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q2pi 
umartirena
Core
No
0028452: Wrong Trial Balance when standard accounting information exists in Opening date
Wrong Trial Balance when standard accounting information exists in Opening date, and report is run at "Account" level and with "Opening Entry Amount to Initial Balance" flag is NOT marked
1. Run Trial Balance for "España General Ledger" , Account Level= Account and "Opening Entry Amount to Initial Balance" NOT marked and dates from 01/01/2014 to 31/12/2014
2. Realize that balance obtained is 0.00
3. Register new Sales Invoice with date 01/01/2014 and post it
4. Run trial balance using same filters and realize that obtained balance is not 0.00
Problem is in "calculateTree" function, when "dataIB" variable is not null. In line 763, value of "data[i].amtacctdr" is being overwritten with (new BigDecimal(dataIB[k].amtacctdr).add(parcialDR)) instead of being increased (new BigDecimal(dataIB[k].amtacctdr).add(parcialDR).add(data[i].amtacctdr))
No tags attached.
duplicate of defect 00218313.0MP19 closed jecharri Trial Balance shows different Final Balance depending the check 'Opening Entry Amount to Initial Balance' 
causes defect 0035896 closed AtulOpenbravo Wrong Trial Balance at "Account" level and without checking "Opening Entry Amount to Initial Balance" 
Issue History
2014-12-18 17:22maiteNew Issue
2014-12-18 17:22maiteAssigned To => dmiguelez
2014-12-18 17:22maiteModules => Core
2014-12-18 17:22maiteResolution time => 1421276400
2014-12-18 17:22maiteTriggers an Emergency Pack => No
2014-12-18 17:23maiteAssigned Todmiguelez => Sandrahuguet
2014-12-18 17:23maiteIssue Monitored: networkb
2015-01-15 00:49reinaldoguerraAssigned ToSandrahuguet => reinaldoguerra
2015-01-15 00:49reinaldoguerraStatusnew => scheduled
2015-01-16 02:55reinaldoguerraNote Added: 0073560
2015-01-20 09:57hgbotCheckin
2015-01-20 09:57hgbotNote Added: 0073637
2015-01-20 09:57hgbotStatusscheduled => resolved
2015-01-20 09:57hgbotResolutionopen => fixed
2015-01-20 09:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/92d415cdc5cf0c2bd31363292d5da6d8e4e43b26 [^]
2015-01-20 09:57umartirenaReview Assigned To => umartirena
2015-01-20 09:57umartirenaNote Added: 0073638
2015-01-20 09:57umartirenaStatusresolved => closed
2015-01-20 09:57umartirenaFixed in Version => pi
2015-02-04 20:34hudsonbotCheckin
2015-02-04 20:34hudsonbotNote Added: 0074163
2017-05-02 17:12maiteRelationship addedcauses 0035896
2017-05-12 12:31aferrazRelationship addedduplicate of 0021831
2017-06-26 10:26dmitry_mezentsevRelationship addedcauses 0035919
2017-06-26 10:32dmitry_mezentsevRelationship deletedcauses 0035919

Notes
(0073560)
reinaldoguerra   
2015-01-16 02:55   
Test plan used:
1- Login into Openbravo ERP.
2- Run Run Trial Balance Report
3- Select dates from 01/01/2014 to 31/12/2014, organization and general ledger: España S.A
4- Display advanced filters and select account level as account and uncheck "Opening Entry Amount to Initial Balance"
5- Click search button and realize that balance obtained is 0.00
6- Register new Sales Invoice with date 01/01/2014, complete it and post it.
7- Run trial balance using same filters and realize that obtained balance is still 0.00
(0073637)
hgbot   
2015-01-20 09:57   
Repository: erp/devel/pi
Changeset: 92d415cdc5cf0c2bd31363292d5da6d8e4e43b26
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Thu Jan 15 17:46:57 2015 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/92d415cdc5cf0c2bd31363292d5da6d8e4e43b26 [^]

Fixed bug 28452: Wrong Trial Balance having standard accounting in Opening date.

The method calculateTree, in Report Trial Balance process class, was calculating in a wrong way the balance of accounting's credits and debits in opening dates. So the method was changed to not just overwrite credit and debit values but to increase them with the accumulate, when initial balance information is requested.
Now when executing Trial Balance report, for opening dates, accounting's credits and debits are calculated properly and balance is set to 0.

---
M src/org/openbravo/erpCommon/ad_reports/ReportTrialBalance.java
---
(0073638)
umartirena   
2015-01-20 09:57   
Code Review + Testing OK
(0074163)
hudsonbot   
2015-02-04 20:34   
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/f36c91d0ad63 [^]
Maturity status: Test