Author: lektran
Date: Mon Jul 2 03:01:47 2007
New Revision: 552451
URL:
http://svn.apache.org/viewvc?view=rev&rev=552451Log:
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