svn commit: r788697 - /ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r788697 - /ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy

ashish-18
Author: ashish
Date: Fri Jun 26 13:34:31 2009
New Revision: 788697

URL: http://svn.apache.org/viewvc?rev=788697&view=rev
Log:
Applied patch from jira issue OFBIZ-2662 ("Transaction Totals" report throwing java.lang.IndexOutOfBoundsException)
Sumit, you have beaten me by doing this work in advance, I was just thinking to start work on this and felt good to see patch from you.

Thanks a lot Sumit. :-)

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

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy?rev=788697&r1=788696&r2=788697&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/TransactionTotals.groovy Fri Jun 26 13:34:31 2009
@@ -65,11 +65,13 @@
 if (allTrans) {
     //PostedTransaction Section
     allPostedTrans = EntityUtil.filterByCondition(allTrans, EntityCondition.makeCondition("isPosted", EntityOperator.EQUALS, "Y"));
-    getPostedTrans(0, (allPostedTrans.get(0)).glAccountId);
+    if (allPostedTrans)
+        getPostedTrans(0, (allPostedTrans.get(0)).glAccountId);
 
     //UnPostedTransaction Section
     allUnPostedTrans = EntityUtil.filterByCondition(allTrans, EntityCondition.makeCondition("isPosted", EntityOperator.EQUALS, "N"));
-    getUnpostedTrans(0, (allUnPostedTrans.get(0)).glAccountId);
+    if (allUnPostedTrans)
+        getUnpostedTrans(0, (allUnPostedTrans.get(0)).glAccountId);
 
     //PostedAndUnPostedTransaction Section
     getPostedAndUnpostedTrans(0, (allTrans.get(0)).glAccountId);