summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/cust_pay_or_refund.html
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-06-12 17:52:34 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-06-12 17:52:34 -0400
commit8743bba0dc26684542301b91ee6a9192e893ab9c (patch)
tree50c1616b58e4191ae0f9c19df09a154bd0a8213c /httemplate/search/elements/cust_pay_or_refund.html
parent0e97c5e7047de09f5c3371870698d21c0fcd1702 (diff)
RT# 76028 - Added search field Card Last 4#: to allow the filtering of payment report by last four of credit card used. Only shows when card_masking_method is set to display last 4
Diffstat (limited to 'httemplate/search/elements/cust_pay_or_refund.html')
-rwxr-xr-xhttemplate/search/elements/cust_pay_or_refund.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html
index 1b1be5f36..96d044fa0 100755
--- a/httemplate/search/elements/cust_pay_or_refund.html
+++ b/httemplate/search/elements/cust_pay_or_refund.html
@@ -348,6 +348,13 @@ if ( $cgi->param('magic') ) {
}
+ if ( $cgi->param('paymask') ) {
+ $cgi->param('paymask') =~ /^\s*(\d+)\s*$/
+ or die "illegal paymask ". $cgi->param('paymask');
+ my $regexp = regexp_sql();
+ push @search, "$table.paymask $regexp '$1\$'";
+ }
+
if ( $cgi->param('payinfo') ) {
$cgi->param('payinfo') =~ /^\s*(\d+)\s*$/
or die "illegal payinfo ". $cgi->param('payinfo');