diff options
author | Mark Wells <mark@freeside.biz> | 2013-03-06 15:04:14 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-03-06 15:04:14 -0800 |
commit | 0704f3f641deb525399521368f1e6ba9ff5b71cd (patch) | |
tree | a300eb157ac9c34b6fdae154d02d42ce28131506 /httemplate/search/elements | |
parent | 5fe75497ce60689c128d93a3f1c9339e7c5e4e49 (diff) |
customer location columns in more reports, #940
Diffstat (limited to 'httemplate/search/elements')
-rw-r--r-- | httemplate/search/elements/cust_main_dayranges.html | 3 | ||||
-rwxr-xr-x | httemplate/search/elements/cust_pay_or_refund.html | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/search/elements/cust_main_dayranges.html b/httemplate/search/elements/cust_main_dayranges.html index eb7566494..c9c71f274 100644 --- a/httemplate/search/elements/cust_main_dayranges.html +++ b/httemplate/search/elements/cust_main_dayranges.html @@ -172,10 +172,11 @@ my $count_sql = "select count(*) from cust_main $where"; my $sql_query = { 'table' => 'cust_main', + 'addl_from' => FS::UI::Web::join_cust_main('cust_main'), 'hashref' => {}, 'select' => join(',', #'cust_main.*', - 'custnum', + 'cust_main.custnum', $range_cols, $packages_cols, FS::UI::Web::cust_sql_fields(), diff --git a/httemplate/search/elements/cust_pay_or_refund.html b/httemplate/search/elements/cust_pay_or_refund.html index b9da7ef06..3dc54d936 100755 --- a/httemplate/search/elements/cust_pay_or_refund.html +++ b/httemplate/search/elements/cust_pay_or_refund.html @@ -424,7 +424,7 @@ if ( $cgi->param('magic') ) { #here is the agent virtualization push @search, $curuser->agentnums_sql; - my $addl_from = ' LEFT JOIN cust_main USING ( custnum ) '; + my $addl_from = FS::UI::Web::join_cust_main('cust_pay'); my $group_by = ''; if ( $cgi->param('tax_names') ) { |