Author: bibryam
Date: Fri Mar 21 11:35:35 2008
New Revision: 639751
URL:
http://svn.apache.org/viewvc?rev=639751&view=revLog:
Fixed a small rounding bug.
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?rev=639751&r1=639750&r2=639751&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java Fri Mar 21 11:35:35 2008
@@ -1306,7 +1306,7 @@
}
}
}
-
+ openAmount = new BigDecimal(openAmount).setScale(scale, rounding).doubleValue();
// return either a positive amount or positive zero
return Math.max(total.doubleValue() - openAmount, 0);
}