From d8dcd7e69090c0697ed0068db30a6716537a50cb Mon Sep 17 00:00:00 2001 From: Scott Gray Date: Thu, 8 Nov 2012 10:38:50 +0000 Subject: [PATCH] Correct operation to determine if the expiry date is an even number in the badExpireEvenProcessor method, was using divide instead of modulo git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1407002 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/ofbiz/accounting/payment/PaymentGatewayServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java index a5307fca68..063782e1d2 100644 --- a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java @@ -3569,7 +3569,7 @@ public class PaymentGatewayServices { String lastNumberStr = expireDate.substring(expireDate.length() - 1); int lastNumber = Integer.parseInt(lastNumberStr); - if (lastNumber / 2.0 == 0.0) { + if (lastNumber % 2.0 == 0.0) { return alwaysBadExpireProcessor(dctx, context); } else { return alwaysApproveProcessor(dctx, context);