[OFBiz] SVN: r6884 - trunk/applications/order/src/org/ofbiz/order/order
sichen@svn.ofbiz.org
sichen at svn.ofbiz.org
Wed Mar 1 19:21:46 CST 2006
Author: sichen
Date: 2006-03-01 19:21:43 -0600 (Wed, 01 Mar 2006)
New Revision: 6884
Modified:
trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java
Log:
Fixed bug where processing credit refund would crash because a service expected a Double but got a BigDecimal instead.
Modified: trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java
===================================================================
--- trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java 2006-03-02 01:18:34 UTC (rev 6883)
+++ trunk/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java 2006-03-02 01:21:43 UTC (rev 6884)
@@ -607,7 +607,7 @@
// create a return item response
Map itemResponse = UtilMisc.toMap("paymentId", paymentId);
itemResponse.put("billingAccountId", billingAccountId);
- itemResponse.put("responseAmount", creditTotal);
+ itemResponse.put("responseAmount", new Double(creditTotal.doubleValue()));
itemResponse.put("responseDate", now);
itemResponse.put("userLogin", userLogin);
Map serviceResults = null;
More information about the Svn
mailing list