summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_broadband.cgi
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-02-28 16:17:59 -0800
committerMark Wells <mark@freeside.biz>2012-02-28 16:17:59 -0800
commitd5cdad7fae9c5e45701a7e83abeb903d31b7983f (patch)
tree24b8a0915a5c7e613a5f117db24c6b5320bef2b4 /httemplate/view/svc_broadband.cgi
parent2bfe8d56f1dbf342cb5fac8187953cdb08b9d4cd (diff)
directions to customer address, #16585
Diffstat (limited to 'httemplate/view/svc_broadband.cgi')
-rw-r--r--httemplate/view/svc_broadband.cgi14
1 files changed, 11 insertions, 3 deletions
diff --git a/httemplate/view/svc_broadband.cgi b/httemplate/view/svc_broadband.cgi
index 05ae632bd..961374e7d 100644
--- a/httemplate/view/svc_broadband.cgi
+++ b/httemplate/view/svc_broadband.cgi
@@ -89,14 +89,22 @@ sub coordinates {
return '' unless $s->latitude && $s->longitude;
my $d = $s->description;
+ my $agentnum;
unless ($d) {
- my $cust_pkg = $s->cust_svc->cust_pkg;
- $d = $cust_pkg->cust_main->name_short if $cust_pkg;
+ if ( my $cust_pkg = $s->cust_svc->cust_pkg ) {
+ $d = $cust_pkg->cust_main->name_short;
+ $agentnum = $cust_pkg->cust_main->agentnum;
+ }
}
#'Latitude: '. $s->latitude. ', Longitude: '. $s->longitude. ' '.
$s->latitude. ', '. $s->longitude. ' '.
- include('/elements/coord-links.html', $s->latitude, $s->longitude, $d);
+ include('/elements/coord-links.html',
+ $s->latitude,
+ $s->longitude,
+ $d,
+ $agentnum
+ );
}
sub svc_callback {