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

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

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

jacopoc
Author: jacopoc
Date: Wed Dec  9 15:06:42 2009
New Revision: 888825

URL: http://svn.apache.org/viewvc?rev=888825&view=rev
Log:
Fixed code that could cause infinite loops.

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

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/GlAccountTrialBalance.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/GlAccountTrialBalance.groovy?rev=888825&r1=888824&r2=888825&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/GlAccountTrialBalance.groovy (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/GlAccountTrialBalance.groovy Wed Dec  9 15:06:42 2009
@@ -76,7 +76,6 @@
         isPosted = parameters.isPosted;
 
         while (customTimePeriodEndDate <= currentTimePeriod.thruDate) {
-
             if ("ALL".equals(isPosted)) {
                 isPosted = "";
             }
@@ -97,7 +96,7 @@
 
             glAcctgTrialBalanceList.add(acctgTransEntriesAndTransTotal);
 
-            calendarTimePeriodStartDate.roll(Calendar.MONTH, 1);
+            calendarTimePeriodStartDate.add(Calendar.MONTH, 1);
             Timestamp retStampStartDate = new Timestamp(calendarTimePeriodStartDate.getTimeInMillis());
             retStampStartDate.setNanos(0);
             customTimePeriodStartDate = retStampStartDate;