summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_credit.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/cust_credit.html')
-rwxr-xr-xhttemplate/search/cust_credit.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/search/cust_credit.html b/httemplate/search/cust_credit.html
index 85128bca2..8f6258e4e 100755
--- a/httemplate/search/cust_credit.html
+++ b/httemplate/search/cust_credit.html
@@ -9,7 +9,7 @@
}
if ( $cgi->param('agentnum') && $cgi->param('agentnum') =~ /^(\d+)$/ ) {
- push @search, "agentnum = $1"; # $search{'agentnum'} = $1;
+ push @search, "agentnum = $1";
my $agent = qsearchs('agent', { 'agentnum' => $1 } );
die "unknown agentnum $1" unless $agent;
$title = $agent->agent. " $title";
@@ -46,6 +46,7 @@
my $sql_query = {
'table' => 'cust_credit',
+ 'select' => 'cust_credit.*, cust_main.last, cust_main.first, cust_main.company',
'hashref' => {},
'extra_sql' => $where,
'addl_from' => 'LEFT JOIN cust_main USING ( custnum )',