You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2008/06/13 04:55:17 UTC

svn commit: r667318 - /ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/admin/ListInvoiceItemTypesGlAccount.groovy

Author: lektran
Date: Thu Jun 12 19:55:17 2008
New Revision: 667318

URL: http://svn.apache.org/viewvc?rev=667318&view=rev
Log:
Small script cleanup

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/admin/ListInvoiceItemTypesGlAccount.groovy

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/admin/ListInvoiceItemTypesGlAccount.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/admin/ListInvoiceItemTypesGlAccount.groovy?rev=667318&r1=667317&r2=667318&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/admin/ListInvoiceItemTypesGlAccount.groovy (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/admin/ListInvoiceItemTypesGlAccount.groovy Thu Jun 12 19:55:17 2008
@@ -26,19 +26,19 @@
 
 // Optional prefix parameter to filter InvoiceItemTypes by (i.e. "INV" or "PINV") defaults to INV
 invItemTypePrefix = context.invItemTypePrefix ?: "INV";
-invItemTypePrefix += "_%"
+invItemTypePrefix += "_%";
 
 organizationPartyId = parameters.organizationPartyId;
 
-List invoiceItemTypes = delegator.findList("InvoiceItemType", EntityCondition.makeCondition("invoiceItemTypeId", EntityOperator.LIKE, invItemTypePrefix), null, null, null, false);
-List allTypes = [];
+invoiceItemTypes = delegator.findList("InvoiceItemType", EntityCondition.makeCondition("invoiceItemTypeId", EntityOperator.LIKE, invItemTypePrefix), null, null, null, false);
+allTypes = [];
 invoiceItemTypes.each { invoiceItemType ->
-    String activeGlDescription = "";
-    String remove = " ";
-    List glAccounts = null;
-    GenericValue glAccount = null;
-    List invoiceItemTypeOrgs = invoiceItemType.getRelatedByAnd("InvoiceItemTypeGlAccount", [organizationPartyId : organizationPartyId]);
-    String overrideGlAccountId = " ";
+    activeGlDescription = "";
+    remove = " ";
+    glAccounts = null;
+    glAccount = null;
+    invoiceItemTypeOrgs = invoiceItemType.getRelatedByAnd("InvoiceItemTypeGlAccount", [organizationPartyId : organizationPartyId]);
+    overrideGlAccountId = " ";
     if (invoiceItemTypeOrgs) {
         invoiceItemTypeOrg = invoiceItemTypeOrgs[0];
         overrideGlAccountId = invoiceItemTypeOrg.glAccountId;