Author: jleroux
Date: Sat Dec 20 00:21:05 2008
New Revision: 728248
URL:
http://svn.apache.org/viewvc?rev=728248&view=revLog:
Reverted from a msg by Santosh Malviya on user ML
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?rev=728248&r1=728247&r2=728248&view=diff==============================================================================
--- 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 Sat Dec 20 00:21:05 2008
@@ -226,11 +226,6 @@
if (chargedToPaymentPref.compareTo(ZERO) == 1) {
// key of the resulting map is paymentMethodId or paymentMethodTypeId if the paymentMethodId is not available
String paymentMethodKey = paymentPref.getString("paymentMethodId") != null ? paymentPref.getString("paymentMethodId") : paymentPref.getString("paymentMethodTypeId");
- if(paymentMethodAmounts.containsKey(paymentMethodKey)){
- Double value = (Double)paymentMethodAmounts.get(paymentMethodKey);
- if(value != null)
- chargedToPaymentPref = chargedToPaymentPref.add(new BigDecimal(value.doubleValue()));
- }
paymentMethodAmounts.put(paymentMethodKey, new Double(chargedToPaymentPref.setScale(scale, rounding).doubleValue()));
}
}