RT# 80175 - updated payment gateway override to not drop ACH overrides on upgrade
authorChristopher Burger <burgerc@freeside.biz>
Tue, 8 Jan 2019 17:03:00 +0000 (12:03 -0500)
committerChristopher Burger <burgerc@freeside.biz>
Tue, 8 Jan 2019 17:03:00 +0000 (12:03 -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 != \'\'',
     });
       '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',
     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 '';
 }
     });
   return '';
 }