Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0023112 | Openbravo ERP | 09. Financial management | public | 2013-02-19 10:28 | 2013-04-04 13:16 | |||||||
Reporter | xabiermerino | |||||||||||
Assigned To | jonalegriaesarte | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | no change required | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 3.0MP19.3 | |||||||||||
Target Version | 3.0MP23 | 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 | 0023112: 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 | |||||||||
2013-02-19 10:28 | xabiermerino | New Issue | ||||||||||
2013-02-19 10:28 | xabiermerino | Assigned To | => dmiguelez | |||||||||
2013-02-19 10:28 | xabiermerino | Modules | => Core | |||||||||
2013-02-19 10:28 | xabiermerino | Triggers an Emergency Pack | => No | |||||||||
2013-02-20 08:47 | dmiguelez | Assigned To | dmiguelez => jonalegriaesarte | |||||||||
2013-03-04 10:49 | jonalegriaesarte | Note Added: 0056964 | ||||||||||
2013-03-04 10:49 | jonalegriaesarte | Target Version | 3.0MP21 => 3.0MP22 | |||||||||
2013-04-02 18:50 | jonalegriaesarte | Target Version | 3.0MP22 => 3.0MP23 | |||||||||
2013-04-04 13:16 | ioritzCia | Note Added: 0057729 | ||||||||||
2013-04-04 13:16 | ioritzCia | Status | new => closed | |||||||||
2013-04-04 13:16 | ioritzCia | Resolution | open => no change required | |||||||||
2013-04-22 13:25 | ngarcia | Relationship added | related to 0023606 | |||||||||
2019-08-23 14:59 | ngarcia | Note Edited: 0057729 | bug_revision_view_page.php?bugnote_id=0057729#r19330 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|