svn commit: r543719 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r543719 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

jacopoc
Author: jacopoc
Date: Sat Jun  2 01:42:45 2007
New Revision: 543719

URL: http://svn.apache.org/viewvc?view=rev&rev=543719
Log:
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);