pg 8.1 fix from Chris Cappuccio
authorivan <ivan>
Wed, 3 May 2006 09:47:32 +0000 (09:47 +0000)
committerivan <ivan>
Wed, 3 May 2006 09:47:32 +0000 (09:47 +0000)
httemplate/search/report_receivables.cgi

index d675346..1dd0fee 100755 (executable)
@@ -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();