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

jleroux@apache.org
Author: jleroux
Date: Sat Jul  5 12:09:58 2008
New Revision: 674228

URL: http://svn.apache.org/viewvc?rev=674228&view=rev
Log:
Even better (also testing my new configuration with Subclipse 1.4 and Subversion 1.5 ;o)

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?rev=674228&r1=674227&r2=674228&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java Sat Jul  5 12:09:58 2008
@@ -995,8 +995,9 @@
         }
 
         if (testOrderId == null || !allSameOrder) {
-            Debug.logWarning("Attempt to settle Invoice #" + invoiceId + " which contained none/multiple orders", module);
-            return ServiceUtil.returnFailure("Attempt to settle Invoice #" + invoiceId + " which contained none/multiple orders");
+            String errorMsg = "Attempt to settle Invoice #" + invoiceId + " which contained none/multiple orders";
+            Debug.logWarning(errorMsg, module);
+            return ServiceUtil.returnFailure(errorMsg);
         }
 
         // get the invoice amount (amount to bill)