Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0021831 | Openbravo ERP | 09. Financial management | public | 2012-10-02 13:18 | 2017-05-12 12:31 | ||||||||||||||
Reporter | xabiermerino | ||||||||||||||||||
Assigned To | jecharri | ||||||||||||||||||
Priority | urgent | Severity | minor | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | no change required | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | 3.0MP19 | Fixed in Version | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | |||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0021831: Trial Balance shows different Final Balance depending the check 'Opening Entry Amount to Initial Balance' | ||||||||||||||||||
Description | Trial Balance shows different Final Balance depending the check 'Opening Entry Amount to Initial Balance'. | ||||||||||||||||||
Steps To Reproduce | In the database execute this query: update fact_acct set factaccttype = 'N' where acctvalue like '%57200%' and factaccttype = 'O' As admin execute the report with the field checked, the result is correct. Execute the report with the field unchecked, the result is wrong | ||||||||||||||||||
Proposed Solution | ReportTrialBalance.java Method calculateTree: Change: // Set calculated Initial Balances for (int k = 0; k < dataIB.length; k++) { if (dataIB[k].accountId.equals(data[i].id)) { if (strNotInitialBalance.equals("Y")) { data[i].saldoInicial = (new BigDecimal(dataIB[k].saldoInicial).add(parcialInicial)) .toPlainString(); } else { data[i].amtacctdr = (new BigDecimal(dataIB[k].amtacctdr).add(parcialDR)) .toPlainString(); data[i].amtacctcr = (new BigDecimal(dataIB[k].amtacctcr).add(parcialCR)) .toPlainString(); } data[i].saldoFinal = (new BigDecimal(dataIB[k].saldoInicial).add(parcialDR) .subtract(parcialCR)).toPlainString(); } } for: // Set calculated Initial Balances for (int k = 0; k < dataIB.length; k++) { if (dataIB[k].accountId.equals(data[i].id)) { if (strNotInitialBalance.equals("Y")) { data[i].saldoInicial = (new BigDecimal(dataIB[k].saldoInicial).add(parcialInicial)) .toPlainString(); } else { data[i].amtacctdr = (new BigDecimal(dataIB[k].amtacctdr).add(parcialDR).add(new BigDecimal(data[i].amtacctdr))) .toPlainString(); data[i].amtacctcr = (new BigDecimal(dataIB[k].amtacctcr).add(parcialCR).add(new BigDecimal(data[i].amtacctcr))) .toPlainString(); } data[i].saldoFinal = (new BigDecimal(dataIB[k].saldoInicial).add(parcialDR) .subtract(parcialCR)).toPlainString(); } } | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2012-10-02 13:18 | xabiermerino | New Issue | |||||||||||||||||
2012-10-02 13:18 | xabiermerino | Assigned To | => dmiguelez | ||||||||||||||||
2012-10-02 13:18 | xabiermerino | Modules | => Core | ||||||||||||||||
2012-10-02 13:18 | xabiermerino | Issue Monitored: networkb | |||||||||||||||||
2012-10-02 16:22 | dmiguelez | Assigned To | dmiguelez => jonalegriaesarte | ||||||||||||||||
2012-10-03 18:31 | xabiermerino | Description Updated | bug_revision_view_page.php?rev_id=3938#r3938 | ||||||||||||||||
2012-10-03 18:31 | xabiermerino | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=3940#r3940 | ||||||||||||||||
2012-10-03 18:31 | xabiermerino | Proposed Solution updated | |||||||||||||||||
2012-10-04 16:10 | jonalegriaesarte | Target Version | => 3.0MP17 | ||||||||||||||||
2012-10-23 18:41 | jonalegriaesarte | Assigned To | jonalegriaesarte => jecharri | ||||||||||||||||
2012-10-30 17:48 | hgbot | Checkin | |||||||||||||||||
2012-10-30 17:48 | hgbot | Note Added: 0053853 | |||||||||||||||||
2012-10-30 17:48 | hgbot | Status | new => resolved | ||||||||||||||||
2012-10-30 17:48 | hgbot | Resolution | open => fixed | ||||||||||||||||
2012-10-30 17:48 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/26799413cdbcee5d0ed80f4a4c08fd481d62d9c5 [^] | ||||||||||||||||
2012-10-30 17:51 | jecharri | Note Added: 0053854 | |||||||||||||||||
2012-10-31 13:31 | hudsonbot | Checkin | |||||||||||||||||
2012-10-31 13:31 | hudsonbot | Note Added: 0053944 | |||||||||||||||||
2012-10-31 16:40 | jecharri | Status | resolved => new | ||||||||||||||||
2012-10-31 16:40 | jecharri | Resolution | fixed => open | ||||||||||||||||
2012-10-31 16:40 | jecharri | Resolution time | => 1349560800 | ||||||||||||||||
2012-10-31 16:40 | jecharri | Target Version | 3.0MP17 => 3.0MP18 | ||||||||||||||||
2012-10-31 19:51 | hgbot | Checkin | |||||||||||||||||
2012-10-31 19:51 | hgbot | Note Added: 0053959 | |||||||||||||||||
2012-11-06 10:47 | hudsonbot | Checkin | |||||||||||||||||
2012-11-06 10:47 | hudsonbot | Note Added: 0054026 | |||||||||||||||||
2012-11-16 17:42 | jonalegriaesarte | Note Added: 0054299 | |||||||||||||||||
2012-11-16 17:42 | jonalegriaesarte | Severity | major => minor | ||||||||||||||||
2012-12-04 11:50 | jonalegriaesarte | Target Version | 3.0MP18 => 3.0MP19 | ||||||||||||||||
2012-12-19 14:53 | jonalegriaesarte | Note Added: 0055079 | |||||||||||||||||
2012-12-19 14:53 | jonalegriaesarte | Status | new => closed | ||||||||||||||||
2012-12-19 14:53 | jonalegriaesarte | Resolution | open => no change required | ||||||||||||||||
2017-05-09 18:09 | aferraz | Relationship added | related to 0035896 | ||||||||||||||||
2017-05-12 12:31 | aferraz | Relationship added | has duplicate 0028452 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|