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

jaz-3
Author: jaz
Date: Mon Jun 25 11:20:16 2007
New Revision: 550570

URL: http://svn.apache.org/viewvc?view=rev&rev=550570
Log:
fixed so that 0.00 which do no process are the same as a successful auth (since there is nothing to do)

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=550570&r1=550569&r2=550570
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java Mon Jun 25 11:20:16 2007
@@ -147,10 +147,9 @@
 
         // if our transaction amount exists and is zero, there's nothing to process, so return
         if ((transAmount != null) && (transAmount.doubleValue() <= 0)) {
-            // prepare the return map (always return success, default finished=false, default errors=false
             Map results = ServiceUtil.returnSuccess();
-            results.put("finished", Boolean.FALSE);
-            results.put("errors", Boolean.FALSE);
+            results.put("finished", Boolean.TRUE); // finished is true since there is nothing to do
+            results.put("errors", Boolean.FALSE); // errors is false since no error occured
             return results;
         }