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

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

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

apatel-2
Author: apatel
Date: Mon Nov 16 22:14:06 2009
New Revision: 881004

URL: http://svn.apache.org/viewvc?rev=881004&view=rev
Log:
saving fromDate and thruDate in context for use in UI only if it came from UI.

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

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy?rev=881004&r1=881003&r2=881004&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/MonthlyTrialBalance.groovy Mon Nov 16 22:14:06 2009
@@ -29,6 +29,8 @@
 if (parameters.fromDate && parameters.thruDate) {
   fromDate = Timestamp.valueOf(parameters.fromDate);
   thruDate = Timestamp.valueOf(parameters.thruDate);
+  context.fromDate = fromDate;
+  context.thruDate = thruDate;
 } else if (parameters.selectedMonth) {
   selectedMonth = Integer.valueOf(parameters.selectedMonth);
   selectedMonthDate = UtilDateTime.toTimestamp((selectedMonth + 1), 1, UtilDateTime.getYear(UtilDateTime.nowTimestamp(), timeZone, locale), 0, 0, 0);
@@ -74,6 +76,4 @@
   }
 }
 
-context.fromDate = fromDate;
-context.thruDate = thruDate;
 context.monthList = ExpressionUiHelper.getMonthValueList(locale);