Author: ashish
Date: Mon Feb 9 06:36:00 2015
New Revision: 1658310
URL: http://svn.apache.org/r1658310
Log:
Applied patch from jira issue - OFBIZ-5952 - IncomeStatement page broken.
Thanks Deepak for creating the issue and providing the patch for the same.
Modified:
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/IncomeStatement.groovy
Modified:
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/IncomeStatement.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/IncomeStatement.groovy?rev=1658310&r1=1658309&r2=1658310&view=diff
==============================================================================
---
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/IncomeStatement.groovy
(original)
+++
ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/reports/IncomeStatement.groovy
Mon Feb 9 06:36:00 2015
@@ -52,7 +52,7 @@ GenericValue expenseGlAccountClass = fro
List expenseAccountClassIds =
UtilAccounting.getDescendantGlAccountClassIds(expenseGlAccountClass);
GenericValue cogsExpenseGlAccountClass =
from("GlAccountClass").where("glAccountClassId",
"COGS_EXPENSE").cache(true).queryOne();
List cogsExpenseAccountClassIds =
UtilAccounting.getDescendantGlAccountClassIds(cogsExpenseGlAccountClass);
-GenericValue sgaExpenseGlAccountClass =
from("GlAccountClass").where("glAccountClassId",
"SGA_EXPENSE").cache(true).queryList();
+GenericValue sgaExpenseGlAccountClass =
from("GlAccountClass").where("glAccountClassId",
"SGA_EXPENSE").cache(true).queryOne();
List sgaExpenseAccountClassIds =
UtilAccounting.getDescendantGlAccountClassIds(sgaExpenseGlAccountClass);
GenericValue depreciationGlAccountClass =
from("GlAccountClass").where("glAccountClassId",
"DEPRECIATION").cache(true).queryOne();
List depreciationAccountClassIds =
UtilAccounting.getDescendantGlAccountClassIds(depreciationGlAccountClass);