X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fagent.pm;h=8aff96a8dec573dd90cc242dbb3e769ec16c7996;hb=d856e90f730f72d173c2eedde4c81bba20c583b8;hp=810709357a491a303815ca504243457966d5f109;hpb=b3ecc63dba7b5739467c342a8f861a94b9b1ee29;p=freeside.git diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 810709357..8aff96a8d 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -294,8 +294,8 @@ sub payment_gateway { } } - my $cardtype_search = "AND cardtype != 'ACH'"; - $cardtype_search = "AND cardtype = 'ACH'" if $options{method} eq 'ECHECK'; + my $cardtype_search = "AND ( cardtype IS NULL OR cardtype <> 'ACH')"; + $cardtype_search = "AND ( cardtype IS NULL OR cardtype = 'ACH' )" if $options{method} eq 'ECHECK'; my $override = qsearchs({