Author: sichen
Date: Tue Jun 19 11:10:41 2007
New Revision: 548810
URL:
http://svn.apache.org/viewvc?view=rev&rev=548810Log:
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() {