A patch from Francis Douet for "Error on Accounting reports for Cash transactions." https://issues.apache.org/jira/browse/OFBIZ-6765
An error is displayed on Accounting reports for Cash transactions: _Error running script at location component://accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy: java.lang.IllegalArgumentException: argument type mismatch_ How to reproduce: create a new cash transaction and go to the Cash Flow Statement report. eg https://demo-trunk-ofbiz.apache.org/accounting/control/CashFlowStatement?organizationPartyId=Company The attached patch addresses the issue. I believe this is related to OFBIZ-5781. jleroux: thanks also to Pierre Smits who spotted an issue with initial Francis's patch git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-1
@@ -193,7 +193,7 @@ if (transactionTotals) {
|
||||
transactionTotalsMap.(transactionTotal.glAccountId).balance = totalDebitBalance.subtract(totalCreditBalance);
|
||||
}
|
||||
} else {
|
||||
transactionTotalsMap.(transactionTotal.glAccountId) = transactionTotal as LinkedList;
|
||||
transactionTotalsMap.(transactionTotal.glAccountId) = transactionTotal;
|
||||
}
|
||||
accountBalanceList = UtilMisc.sortMaps(transactionTotalsMap.values().asList(), UtilMisc.toList("accountCode"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user