You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by si...@apache.org on 2007/09/25 19:25:43 UTC

svn commit: r579326 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Author: sichen
Date: Tue Sep 25 10:25:40 2007
New Revision: 579326

URL: http://svn.apache.org/viewvc?rev=579326&view=rev
Log:
better null handling

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

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java?rev=579326&r1=579325&r2=579326&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java Tue Sep 25 10:25:40 2007
@@ -1284,7 +1284,7 @@
             GenericValue productStore = orh.getProductStore();
 
             // If shipping charges are not prorated, the shipments need to be examined for additional shipping charges
-            if (productStore.getString("prorateShipping").equals("N")) {
+            if ("N".equalsIgnoreCase(productStore.getString("prorateShipping"))) {
     
                 // Get the set of filtered shipments
                 List invoiceableShipments = null;