projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix multiple-agent virtualization properly for these reports
[freeside.git]
/
httemplate
/
search
/
report_receivables.cgi
diff --git
a/httemplate/search/report_receivables.cgi
b/httemplate/search/report_receivables.cgi
index
ac94e1a
..
c1a239f
100755
(executable)
--- 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 = {