Author: lektran
Date: Sun Dec 16 00:05:32 2007
New Revision: 604566
URL:
http://svn.apache.org/viewvc?rev=604566&view=revLog:
Took me close to an hour to dig this one out, please be careful with BigDecimals!
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?rev=604566&r1=604565&r2=604566&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Sun Dec 16 00:05:32 2007
@@ -4475,7 +4475,7 @@
values.add(opp);
}
} else if ("N".equals(splitPayPrefPerShpGrp)) {
- maxAmount.add(new BigDecimal(amount));
+ maxAmount = maxAmount.add(new BigDecimal(amount));
maxAmount = maxAmount.setScale(scale, rounding);
// create the OrderPaymentPreference record