X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_pay.cgi;h=99ffc3d20a6b82f16316cd3fc8b90d1ae4f4f0b6;hb=2c757d7db4cb6a7b9655de13206fcc84fb7ce61f;hp=9b9458e634e2476fd2243e60f7b79f3bf4a32bcf;hpb=e0ab4446794f3c9ad0ecf012fcc8b1b3ef4d48cf;p=freeside.git diff --git a/httemplate/search/cust_pay.cgi b/httemplate/search/cust_pay.cgi index 9b9458e63..99ffc3d20 100755 --- a/httemplate/search/cust_pay.cgi +++ b/httemplate/search/cust_pay.cgi @@ -17,7 +17,7 @@ if ( $cgi->param('payby') ) { $cgi->param('payby') =~ - /^(CARD|CHEK|BILL|PREP|CASH|WEST)(-(VisaMC|Amex|Discover|Maestro))?$/ + /^(CARD|CHEK|BILL|PREP|CASH|WEST|MCRD)(-(VisaMC|Amex|Discover|Maestro))?$/ or die "illegal payby ". $cgi->param('payby'); push @search, "cust_pay.payby = '$1'"; if ( $3 ) { @@ -51,8 +51,9 @@ " ) "; } elsif ( $3 eq 'Discover' ) { push @search, - " substring(cust_pay.payinfo from 1 for 4 ) = '6011' ". - " OR substring(cust_pay.payinfo from 1 for 3 ) = '650' "; + " ( substring(cust_pay.payinfo from 1 for 4 ) = '6011' ". + " OR substring(cust_pay.payinfo from 1 for 3 ) = '650' ". + " ) "; } elsif ( $3 eq 'Maestro' ) { push @search, " ( substring(cust_pay.payinfo from 1 for 2 ) = '63' ". @@ -169,6 +170,8 @@ 'Cash '. $cust_pay->payinfo; } elsif ( $cust_pay->payby eq 'WEST' ) { 'Western Union'; #. $cust_pay->payinfo; + } elsif ( $cust_pay->payby eq 'MCRD' ) { + 'Manual credit card'; #. $cust_pay->payinfo; } else { $cust_pay->payby. ' '. $cust_pay->payinfo; }