svn commit: r548810 - /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: r548810 - /ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

sichen
Author: sichen
Date: Tue Jun 19 11:10:41 2007
New Revision: 548810

URL: http://svn.apache.org/viewvc?view=rev&rev=548810
Log:
Fix bug where order open amount is reported as negative.  It should report 0 in this case.

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?view=diff&rev=548810&r1=548809&r2=548810
==============================================================================
--- 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 Tue Jun 19 11:10:41 2007
@@ -1313,7 +1313,7 @@
                 }
             }
         }
-        return total - openAmount;
+        return Math.max(total - openAmount, 0);
     }
 
     public List getOrderHeaderAdjustments() {