diff options
Diffstat (limited to 'httemplate/search/cust_credit.html')
-rwxr-xr-x | httemplate/search/cust_credit.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/httemplate/search/cust_credit.html b/httemplate/search/cust_credit.html index 279d682..eb78db5 100755 --- a/httemplate/search/cust_credit.html +++ b/httemplate/search/cust_credit.html @@ -36,9 +36,10 @@ push @search, " _date < $1 "; } - my $where = scalar(@search) - ? 'WHERE '. join(' AND ', @search) - : ''; + #here is the agent virtualization + push @search, $FS::CurrentUser::CurrentUser->agentnums_sql; + + my $where = 'WHERE '. join(' AND ', @search); my $count_query = 'SELECT COUNT(*), SUM(amount) '. 'FROM cust_credit LEFT JOIN cust_main USING ( custnum ) '. |