ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jler...@apache.org
Subject svn commit: r1719857 - /ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy
Date Mon, 14 Dec 2015 06:53:06 GMT
Author: jleroux
Date: Mon Dec 14 06:53:06 2015
New Revision: 1719857

URL: http://svn.apache.org/viewvc?rev=1719857&view=rev
Log:
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

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy?rev=1719857&r1=1719856&r2=1719857&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy
(original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/CashFlowStatement.groovy
Mon Dec 14 06:53:06 2015
@@ -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"));
         }



Mime
View raw message