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/report_receivables.cgi | |
parent | e5742a8ccfca16427631a45fc8895d6fc1a493dd (diff) |
fix multiple-agent virtualization properly for these reports
Diffstat (limited to 'httemplate/search/report_receivables.cgi')
-rwxr-xr-x | httemplate/search/report_receivables.cgi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/httemplate/search/report_receivables.cgi b/httemplate/search/report_receivables.cgi index ac94e1a5c..c1a239fd2 100755 --- a/httemplate/search/report_receivables.cgi +++ b/httemplate/search/report_receivables.cgi @@ -92,6 +92,9 @@ END $where .= " AND agentnum = '$agentnum' "; } + #here is the agent virtualization + $where .= ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql; + my $count_sql = "select count(*) from cust_main $where"; my $sql_query = { |