Author: jacopoc
Date: Sat Jun 2 01:42:45 2007
New Revision: 543719
URL:
http://svn.apache.org/viewvc?view=rev&rev=543719Log:
Removed superfluous np check.
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java?view=diff&rev=543719&r1=543718&r2=543719==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java Sat Jun 2 01:42:45 2007
@@ -1167,9 +1167,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);