Author: sichen
Date: Tue Jun 19 11:33:43 2007
New Revision: 548817
URL: http://svn.apache.org/viewvc?view=rev&rev=548817
Log:
Fix bug where order open amount is reported as negative. It should report 0 in
this case.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java?view=diff&rev=548817&r1=548816&r2=548817
==============================================================================
---
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
(original)
+++
ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
Tue Jun 19 11:33:43 2007
@@ -1314,7 +1314,7 @@
}
}
}
- return total - openAmount;
+ return Math.max(total - openAmount, 0);
}
public List getOrderHeaderAdjustments() {