From 0e8e082b68d6210eb8749ac6211b969818928f3d Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 8 Jan 2019 12:03:00 -0500 Subject: [PATCH] RT# 80175 - updated payment gateway override to not drop ACH overrides on upgrade --- FS/FS/agent_payment_gateway.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/agent_payment_gateway.pm b/FS/FS/agent_payment_gateway.pm index 6a7cc06d1..16979d859 100644 --- a/FS/FS/agent_payment_gateway.pm +++ b/FS/FS/agent_payment_gateway.pm @@ -119,10 +119,10 @@ sub _upgrade_data { 'table' => 'agent_payment_gateway', 'extra_sql' => ' WHERE taxclass IS NOT NULL AND taxclass != \'\'', }); - die "Agent cardtype override no longer supported" + die "Non ACH (E-check) Agent cardtype override no longer supported" if qsearch({ 'table' => 'agent_payment_gateway', - 'extra_sql' => ' WHERE cardtype IS NOT NULL AND cardtype != \'\'', + 'extra_sql' => ' WHERE cardtype IS NOT NULL AND cardtype != \'\' AND cardtype != \'ACH\'', }); return ''; } -- 2.11.0