diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-01-18 14:50:22 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-01-18 14:50:22 -0800 |
commit | 4c289fa61fa2cc6ed21bdacd047c969eb5c7f96c (patch) | |
tree | 3d2d0c785795c52a3196e0b1d5b5138e150f4de4 /httemplate | |
parent | a0c37cca3cea5a5167650e3338234dd17a1e81c1 (diff) |
fully-qualify
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/search/cust_pay_batch.cgi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/httemplate/search/cust_pay_batch.cgi b/httemplate/search/cust_pay_batch.cgi index 9f9eb30ce..b47aaf37c 100755 --- a/httemplate/search/cust_pay_batch.cgi +++ b/httemplate/search/cust_pay_batch.cgi @@ -72,7 +72,7 @@ if ( $cgi->param('batchnum') && $cgi->param('batchnum') =~ /^(\d+)$/ ) { } if ( $cgi->param('custnum') && $cgi->param('custnum') =~ /^(\d+)$/ ) { - push @search, "custnum = $1"; + push @search, "cust_pay_batch.custnum = $1"; } if ( $cgi->param('status') && $cgi->param('status') =~ /^(\w)$/ ) { @@ -116,7 +116,6 @@ $sql_query = { 'hashref' => {}, 'addl_from' => 'LEFT JOIN pay_batch USING ( batchnum ) '. 'LEFT JOIN cust_main USING ( custnum ) '. - 'LEFT JOIN cust_pay USING ( batchnum, custnum ) ', 'extra_sql' => $search, 'order_by' => "ORDER BY $orderby", |