fix ambiguous agentnum errors in cust_event.html & report_tax.cgi (provide a table...
[freeside.git] / httemplate / search / report_tax.cgi
index e974805..bb9c8f4 100755 (executable)
@@ -226,7 +226,7 @@ if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
   my $agent = qsearchs('agent', { 'agentnum' => $1 } );
   die "agent not found" unless $agent;
   $agentname = $agent->agent;
-  $where .= ' AND agentnum = '. $agent->agentnum;
+  $where .= ' AND cust_main.agentnum = '. $agent->agentnum;
 }
 
 my $gotcust = "