svn commit: r543712 - /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: r543712 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java

jacopoc
Author: jacopoc
Date: Sat Jun  2 00:23:23 2007
New Revision: 543712

URL: http://svn.apache.org/viewvc?view=rev&rev=543712
Log:
Code cleanups, no functional changes: captureAmountBd cannot be null because it is a mandatory field of the captureOrderPayments service, there is no need to check for a null value.

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=543712&r1=543711&r2=543712
==============================================================================
--- 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 00:23:23 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