diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-01-19 14:05:44 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-01-19 14:05:44 -0800 |
commit | 17ca8b897e82cffb3731a63ccae1fb12494a7246 (patch) | |
tree | 3b8ef21a07f7827308cbeada19d499f657444c07 /httemplate/search/elements/cust_pay_or_refund.html | |
parent | bbf3f6d6af46d522a395e4c31ed8818059517b75 (diff) |
select quick payment entry batch in payment report, RT#26343
Diffstat (limited to 'httemplate/search/elements/cust_pay_or_refund.html')
-rwxr-xr-x | httemplate/search/elements/cust_pay_or_refund.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html index 234121fa3..c272a1614 100755 --- a/httemplate/search/elements/cust_pay_or_refund.html +++ b/httemplate/search/elements/cust_pay_or_refund.html @@ -440,8 +440,6 @@ if ( $cgi->param('magic') ) { $cgi->param('paybatch') =~ /^([\w\/\:\-\.]+)$/ or die "illegal paybatch: ". $cgi->param('paybatch'); - push @search, "paybatch = '$1'"; - $orderby = "LOWER(company || ' ' || last || ' ' || first )"; } elsif ( $cgi->param('magic') eq 'batchnum' ) { @@ -457,6 +455,10 @@ if ( $cgi->param('magic') ) { die "unknown search magic: ". $cgi->param('magic'); } + if ( $cgi->param('paybatch') =~ /^([\w\/\:\-\.]+)$/ ) { + push @search, "paybatch = '$1'"; + } + #unapplied payment/refund if ( $unapplied ) { push @select, '(' . "FS::$table"->unapplied_sql . ') AS unapplied_amount'; |