RT# - updated payment gateway override to not drop ACH overrides on upgrade
authorChristopher Burger <burgerc@freeside.biz>
Tue, 8 Jan 2019 15:24:01 +0000 (10:24 -0500)
committerChristopher Burger <burgerc@freeside.biz>
Tue, 8 Jan 2019 16:35:22 +0000 (11:35 -0500)
FS/FS/agent_payment_gateway.pm

index 6a7cc06..16979d8 100644 (file)
@@ -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 '';
 }