summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-07-22 09:57:25 -0700
committerMark Wells <mark@freeside.biz>2016-07-22 09:57:25 -0700
commit4d77cd40a01ff3526aa92adccca89d305f232eea (patch)
treee86cc55113c5a9f2aefba577b0f25c0e584f68ae /httemplate
parent61eae331f47a5482f7e1ee8dfa6c5c0b4461f32e (diff)
turn off debugging, make Tokenized work
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/search/elements/cust_pay_or_refund.html18
1 files changed, 4 insertions, 14 deletions
diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html
index 03aaedd36..236162428 100755
--- a/httemplate/search/elements/cust_pay_or_refund.html
+++ b/httemplate/search/elements/cust_pay_or_refund.html
@@ -74,6 +74,7 @@ my %cardtype_of = (
'Amex' => q['American Express card'],
'Discover' => q['Discover card'],
'Maestro' => q['Switch', 'Solo', 'Laser'],
+ 'Tokenized' => q['Tokenized'],
);
</%shared>
<%init>
@@ -326,18 +327,9 @@ if ( $cgi->param('magic') ) {
if ( $subtype ) {
- if ( $subtype eq 'Tokenized' ) {
-
- $payby_search .= " AND substring($table.payinfo from 1 for 2 ) = '99' ";
- # XXX should store the cardtype as 'Tokenized' in this case?
-
- } else {
-
- my $in_cardtype = $cardtype_of{$subtype}
- or die "unknown card type $subtype";
- $payby_search .= " AND $table.paycardtype IN($in_cardtype)";
-
- }
+ my $in_cardtype = $cardtype_of{$subtype}
+ or die "unknown card type $subtype";
+ $payby_search .= " AND $table.paycardtype IN($in_cardtype)";
}
@@ -499,8 +491,6 @@ if ( $cgi->param('magic') ) {
'addl_from' => $addl_from,
};
-warn Dumper \$sql_query;
-
} else {
#hmm... is this still used?