Author: arunpatidar
Date: Sat Sep 19 11:08:32 2015
New Revision: 1703981

URL: http://svn.apache.org/viewvc?rev=1703981&view=rev
Log:
[OFBIZ-5927] Applied the changes as discussed on ticket. Thanks Jacques and 
Scott for concluding it and thanks to Prateek for reporting this bug.

Modified:
    
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java

Modified: 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java?rev=1703981&r1=1703980&r2=1703981&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
 (original)
+++ 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/authorizedotnet/AIMPaymentServices.java
 Sat Sep 19 11:08:32 2015
@@ -252,7 +252,7 @@ public class AIMPaymentServices {
             return reply;
         }
         Map<String, Object> results = ServiceUtil.returnSuccess();
-        context.put("x_Amount", context.get("releaseAmount")); // hack for 
releaseAmount
+        context.put("x_Amount", ((BigDecimal) 
context.get("releaseAmount")).toPlainString()); // hack for releaseAmount
         results.putAll(processReleaseTransResult(context, reply));
         return results;
     }
@@ -823,8 +823,8 @@ public class AIMPaymentServices {
     private static BigDecimal getXAmount(Map<String, Object> request) {
         BigDecimal amt = BigDecimal.ZERO;
         if (request.get("x_Amount") != null) {
-            BigDecimal amount = (BigDecimal) request.get("x_Amount");
             try {
+                BigDecimal amount = new BigDecimal((String) 
request.get("x_Amount"));
                 amt = amount;
             } catch (NumberFormatException e) {
                 Debug.logWarning(e, e.getMessage(), module);


Reply via email to