Author: sichen Date: Mon Jan 21 21:06:35 2008 New Revision: 614118 URL: http://svn.apache.org/viewvc?rev=614118&view=rev Log: return failure instead of error if a payment method does not have a payment setting, such as paypal, when doing a refund.
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=614118&r1=614117&r2=614118&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 Mon Jan 21 21:06:35 2008 @@ -2264,7 +2264,7 @@ return ServiceUtil.returnError("No refund service defined"); } } else { - return ServiceUtil.returnError("No payment settings found"); + return ServiceUtil.returnFailure("No payment settings found"); } }