projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix ambiguous agentnum errors in cust_event.html & report_tax.cgi (provide a table...
[freeside.git]
/
httemplate
/
search
/
cust_event.html
diff --git
a/httemplate/search/cust_event.html
b/httemplate/search/cust_event.html
index
f9cce46
..
dc6fd05
100644
(file)
--- a/
httemplate/search/cust_event.html
+++ b/
httemplate/search/cust_event.html
@@
-151,7
+151,7
@@
my $title = $cgi->param('failed')
my @search = ();
if ( $cgi->param('agentnum') && $cgi->param('agentnum') =~ /^(\d+)$/ ) {
my @search = ();
if ( $cgi->param('agentnum') && $cgi->param('agentnum') =~ /^(\d+)$/ ) {
- push @search, "agentnum = $1";
+ push @search, "
cust_main.
agentnum = $1";
#my $agent = qsearchs('agent', { 'agentnum' => $1 } );
#die "unknown agentnum $1" unless $agent;
}
#my $agent = qsearchs('agent', { 'agentnum' => $1 } );
#die "unknown agentnum $1" unless $agent;
}
@@
-183,9
+183,7
@@
if ( $cgi->param('pkgnum') =~ /^(\d+)$/ ) {
}
#here is the agent virtualization
}
#here is the agent virtualization
-my $agent_sql = $curuser->agentnums_sql;
-$agent_sql =~ s/agentnum/cust_main.agentnum/g;
-push @search, $agent_sql;
+push @search, $curuser->agentnums_sql( 'table' => 'cust_main' );
my $where = 'WHERE '. join(' AND ', @search );
my $where = 'WHERE '. join(' AND ', @search );