summaryrefslogtreecommitdiff
path: root/httemplate/search/report_receivables.cgi
diff options
context:
space:
mode:
authorivan <ivan>2006-05-03 09:47:31 +0000
committerivan <ivan>2006-05-03 09:47:31 +0000
commit29644d5921c99520965b884b25800ed084891e94 (patch)
tree4c7352da1fe53b26d647178be532fbf560e90214 /httemplate/search/report_receivables.cgi
parent8e889ba1218905519bcd912ff6b84d0041860317 (diff)
pg 8.1 fix from Chris Cappuccio
Diffstat (limited to 'httemplate/search/report_receivables.cgi')
-rwxr-xr-xhttemplate/search/report_receivables.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/search/report_receivables.cgi b/httemplate/search/report_receivables.cgi
index d675346..1dd0fee 100755
--- a/httemplate/search/report_receivables.cgi
+++ b/httemplate/search/report_receivables.cgi
@@ -110,7 +110,7 @@ END
$owed_cols =~
s/cust_bill\.custnum/cust_bill.custnum AND cust_main.agentnum = '$agentnum'/g;
}
- my $total_sql = "select $owed_cols";
+ my $total_sql = "select $owed_cols from cust_main";
my $total_sth = dbh->prepare($total_sql) or die dbh->errstr;
$total_sth->execute or die $total_sth->errstr;
my $row = $total_sth->fetchrow_hashref();