Author: lektran
Date: Thu Jul 5 02:42:48 2007
New Revision: 553439
URL:
http://svn.apache.org/viewvc?view=rev&rev=553439Log:
Applied fix from trunk for revision: 543719
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=553439&r1=553438&r2=553439==============================================================================
--- 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 Thu Jul 5 02:42:48 2007
@@ -1164,9 +1164,7 @@
amountCapturedBd = amountCapturedBd.setScale(2, BigDecimal.ROUND_HALF_UP);
// decrease amount of next payment preference to capture
- if (amountCaptured != null) {
- amountToCapture = amountToCapture.subtract(amountCapturedBd);
- }
+ amountToCapture = amountToCapture.subtract(amountCapturedBd);
// add the invoiceId to the result for processing
captureResult.put("invoiceId", invoiceId);