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/06/19 20:10:43 UTC
svn commit: r548810 -
/ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
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() {