Author: jleroux
Date: Tue Dec 23 11:06:32 2014
New Revision: 1647542
URL:
http://svn.apache.org/r1647542Log:
Revert r1647522. This is not the right solution said Scott on dev ML
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=1647542&r1=1647541&r2=1647542&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 Tue Dec 23 11:06:32 2014
@@ -824,8 +824,7 @@ public class AIMPaymentServices {
private static BigDecimal getXAmount(Map<String, Object> request) {
BigDecimal amt = BigDecimal.ZERO;
if (request.get("x_Amount") != null) {
- String newAmt = request.get("x_Amount").toString();
- BigDecimal amount = new BigDecimal(newAmt);
+ BigDecimal amount = (BigDecimal) request.get("x_Amount");
try {
amt = amount;
} catch (NumberFormatException e) {