diff options
author | ivan <ivan> | 2006-07-13 03:54:07 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-07-13 03:54:07 +0000 |
commit | 779ca0263837bebf7f0ab6f45cb8381706049658 (patch) | |
tree | 3b767f57e71582f98ae36ee80a6f5b2bb3895ce3 /httemplate/search/cust_credit.html | |
parent | e5742a8ccfca16427631a45fc8895d6fc1a493dd (diff) |
fix multiple-agent virtualization properly for these reports
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 279d682cd..eb78db5cd 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 ) '. |