diff options
author | Mark Wells <mark@freeside.biz> | 2013-01-02 19:01:16 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-01-02 19:01:16 -0800 |
commit | e5d6af11f52aabe8c9e6e12ce43c3401ccf025a8 (patch) | |
tree | e67a2737e58566ad7d4e4b759b3bf4a542dae25d /httemplate/search/elements/cust_pay_or_refund.html | |
parent | c7286ce9036d71665c2bfed9de93f87309b72d35 (diff) |
move credit card transaction results out of paybatch and into real fields, #18548
Diffstat (limited to 'httemplate/search/elements/cust_pay_or_refund.html')
-rwxr-xr-x | httemplate/search/elements/cust_pay_or_refund.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html index b0524913a..eeef0c0e1 100755 --- a/httemplate/search/elements/cust_pay_or_refund.html +++ b/httemplate/search/elements/cust_pay_or_refund.html @@ -330,6 +330,16 @@ if ( $cgi->param('magic') ) { push @search, "$table.payinfo = '$1'"; } + if ( $cgi->param('ccpay') =~ /^([\w-:]+)$/ ) { + # I think that's all the characters we need to allow. + # To avoid confusion, this parameter searches both auth and order_number. + push @search, "($table.auth LIKE '$1%') OR ($table.order_number LIKE '$1%')"; + push @fields, 'auth', 'order_number'; + push @header, 'Auth #', 'Transaction #'; + $align .= 'rr'; + + } + if ( $cgi->param('usernum') =~ /^(\d+)$/ ) { push @search, "$table.usernum = $1"; } |