Author: lektran
Date: Thu Nov 19 05:00:06 2009
New Revision: 882048

URL: http://svn.apache.org/viewvc?rev=882048&view=rev
Log:
Removed code block that was causing invoices with types other than sales or 
purchase to return a total of zero (e.g. a commission invoice)

Modified:
    
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java

Modified: 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java?rev=882048&r1=882047&r2=882048&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java
 (original)
+++ 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceWorker.java
 Thu Nov 19 05:00:06 2009
@@ -192,8 +192,6 @@
                         invoiceItems, UtilMisc.toList(
                                 
EntityCondition.makeCondition("invoiceItemTypeId", EntityOperator.NOT_EQUAL, 
"PINV_SALES_TAX"), 
                                 
EntityCondition.makeCondition("invoiceItemTypeId", EntityOperator.NOT_EQUAL, 
"PITM_SALES_TAX")));
-            } else {
-                invoiceItems = null;
             }
         } catch (GenericEntityException e) {
             Debug.logError(e, "Trouble getting InvoiceItem list", module);


Reply via email to