summaryrefslogtreecommitdiff
path: root/httemplate/browse/part_referral.html
diff options
context:
space:
mode:
authorivan <ivan>2006-08-10 13:50:45 +0000
committerivan <ivan>2006-08-10 13:50:45 +0000
commit0a7d9371d3514312edd8661c621876cece4d5221 (patch)
tree8f1b253215631e99f68ed8468f17c01581a9c872 /httemplate/browse/part_referral.html
parent9b38584b79d03f6baa9a55bc623760261305e96c (diff)
add cust_main.agent_custid (at least to schema and customer view, no manual editing yet)
Diffstat (limited to 'httemplate/browse/part_referral.html')
-rwxr-xr-xhttemplate/browse/part_referral.html7
1 files changed, 1 insertions, 6 deletions
diff --git a/httemplate/browse/part_referral.html b/httemplate/browse/part_referral.html
index 6a9f7003b..468593160 100755
--- a/httemplate/browse/part_referral.html
+++ b/httemplate/browse/part_referral.html
@@ -32,12 +32,7 @@ Where a customer heard about your service. Tracked for informational purposes.
'Total' => 86400, # 60sec * 60min * 24hrs
);
- my $curuser = $FS::CurrentUser::CurrentUser;
- my $extra_sql = $curuser->agentnums_sql;
- $extra_sql .= ' OR agentnum IS NULL '
- if $curuser->access_right('Edit global advertising sources');
-
- $extra_sql = " WHERE $extra_sql";
+ $extra_sql = " WHERE ". FS::part_referral->acl_agentnum_sql;
my $statement = "SELECT COUNT(*) FROM h_cust_main
WHERE history_action = 'insert'