svn commit: r574149 - /ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

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

svn commit: r574149 - /ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

jleroux@apache.org
Author: jleroux
Date: Sun Sep  9 23:32:46 2007
New Revision: 574149

URL: http://svn.apache.org/viewvc?rev=574149&view=rev
Log:
Applied fix from trunk for revision: 574124

Modified:
    ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

Modified: ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java?rev=574149&r1=574148&r2=574149&view=diff
==============================================================================
--- ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java (original)
+++ ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java Sun Sep  9 23:32:46 2007
@@ -1909,7 +1909,7 @@
             GenericValue orderItem = (GenericValue) orderItems.next();
 
             BigDecimal itemQuantityDbl = orderItem.getBigDecimal("quantity");
-            if (itemQuantityDbl == null) {
+            if (itemQuantityDbl == null || itemQuantityDbl.compareTo(ZERO) == 0) {
                 continue;
             }
             BigDecimal itemQuantity = itemQuantityDbl;