From 6f3e2d767dfb0bb8f491560189350bbff7be5ffe Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sat, 5 Jul 2008 19:07:26 +0000 Subject: [PATCH] Definitively better, from David's advice git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@674226 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/ofbiz/accounting/payment/PaymentGatewayServices.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java index 71591542dd..3c35225014 100644 --- a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java @@ -996,8 +996,7 @@ public class PaymentGatewayServices { if (testOrderId == null || !allSameOrder) { Debug.logWarning("Attempt to settle Invoice #" + invoiceId + " which contained none/multiple orders", module); - Map result = ServiceUtil.returnSuccess(); - result.put("processResult", "FAILED"); + Map result = ServiceUtil.returnFailure("Attempt to settle Invoice #" + invoiceId + " which contained none/multiple orders"); return result; }