Author: jleroux
Date: Fri Feb 29 15:47:59 2008
New Revision: 632497
URL:
http://svn.apache.org/viewvc?rev=632497&view=revLog:
Fix a bug reported by Hansen Wang on user ML
Modified:
ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
Modified: ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java?rev=632497&r1=632496&r2=632497&view=diff==============================================================================
--- ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java (original)
+++ ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java Fri Feb 29 15:47:59 2008
@@ -1524,7 +1524,7 @@
}else{
int cashIndex = paymentTypes.indexOf("CASH");
String cashId = (String) paymentTypes.get(cashIndex);
- double cashAmount = cart.getPaymentAmount(cashId);
+ double cashAmount = cart.getPaymentAmount(cashId).doubleValue();
if (cashAmount < changeAmount){
Debug.logError("Change Amount : " + changeAmount + " / Cash Amount : " + cashAmount, module);
errMsg = UtilProperties.getMessage(resource, "checkhelper.change_returned_cannot_be_greater_than_cash", (cart != null ? cart.getLocale() : Locale.getDefault()));