You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2007/07/02 12:01:48 UTC

svn commit: r552451 - /ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

Author: lektran
Date: Mon Jul  2 03:01:47 2007
New Revision: 552451

URL: http://svn.apache.org/viewvc?view=rev&rev=552451
Log:
Applied fix from trunk for revision: 543712

Modified:
    ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

Modified: ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java?view=diff&rev=552451&r1=552450&r2=552451
==============================================================================
--- ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java (original)
+++ ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java Mon Jul  2 03:01:47 2007
@@ -1091,11 +1091,7 @@
         }
 
         BigDecimal amountToCapture = ZERO;
-        if (captureAmountBd == null) {
-            amountToCapture = remainingTotalBd;
-        } else {
-            amountToCapture = captureAmountBd;
-        }
+        amountToCapture = captureAmountBd;
         if (Debug.infoOn()) Debug.logInfo("Actual Expected Capture Amount : " + amountToCapture, module);
 
         // iterate over the prefs and capture each one until we meet our total