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 | |
| parent | bbf3f6d6af46d522a395e4c31ed8818059517b75 (diff) | |
select quick payment entry batch in payment report, RT#26343
Diffstat (limited to 'httemplate/search/elements')
| -rwxr-xr-x | httemplate/search/elements/cust_pay_or_refund.html | 6 | ||||
| -rw-r--r-- | httemplate/search/elements/report_cust_pay_or_refund.html | 10 |
2 files changed, 14 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'; diff --git a/httemplate/search/elements/report_cust_pay_or_refund.html b/httemplate/search/elements/report_cust_pay_or_refund.html index b39c7c088..25f7cdadd 100644 --- a/httemplate/search/elements/report_cust_pay_or_refund.html +++ b/httemplate/search/elements/report_cust_pay_or_refund.html @@ -89,6 +89,16 @@ Examples: </TR> % } +% if ( $table eq 'cust_pay' ) { + +% # payment batch +% # <& /elements/tr-select-batchnum.html &> + +% #payment "entry" batch (should probably just all become the same thing) + <& /elements/tr-select-paybatch.html &> + +% } + <& /elements/tr-input-lessthan_greaterthan.html, 'label' => emt('Amount'), 'field' => 'paid', |
