X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_broadband.cgi;h=dead70b7f734832037d1a0be4de7c291538c2192;hb=f3066cbe669a488a7842a1219b2cddf8690f2c32;hp=1463925b40abcf8081c3cd86d1e37450ceafb782;hpb=9ecb64360568b205334ae23e1051249cb56491b6;p=freeside.git
diff --git a/httemplate/view/svc_broadband.cgi b/httemplate/view/svc_broadband.cgi
index 1463925b4..dead70b7f 100644
--- a/httemplate/view/svc_broadband.cgi
+++ b/httemplate/view/svc_broadband.cgi
@@ -10,7 +10,7 @@
<% include('/elements/init_overlib.html') %>
-Edit this information
+<% include('/view/elements/svc_edit_link.html', 'svc'=>$svc_broadband) %>
<%ntable("#cccccc")%>
@@ -83,6 +83,10 @@
Authentication Key |
<%$auth_key%> |
+
+ Service Plan Id |
+ <%$plan_id%> |
+
|
%
%foreach (sort { $a cmp $b } $svc_broadband->virtual_fields) {
@@ -168,7 +172,9 @@ my $svc_broadband = qsearchs({
' LEFT JOIN cust_pkg USING ( pkgnum ) '.
' LEFT JOIN cust_main USING ( custnum ) ',
'hashref' => { 'svcnum' => $svcnum },
- 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql,
+ 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql(
+ 'null_right' => 'View/link unlinked services'
+ ),
}) or die "svc_broadband: Unknown svcnum $svcnum";
#false laziness w/all svc_*.cgi
@@ -201,6 +207,7 @@ my (
$vlan_profile,
$auth_key,
$description,
+ $plan_id,
) = (
$svc_broadband->getfield('speed_down'),
$svc_broadband->getfield('speed_up'),
@@ -212,6 +219,7 @@ my (
$svc_broadband->vlan_profile,
$svc_broadband->auth_key,
$svc_broadband->description,
+ $svc_broadband->plan_id,
);
%init>