From: Ivan Kohler Date: Fri, 8 Feb 2013 07:11:26 +0000 (-0800) Subject: add MAC address and description to svc_broadband label, RT#19115 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=47f7a3e61064184284833ba0e9c59e34e16d1678;p=freeside.git add MAC address and description to svc_broadband label, RT#19115 --- diff --git a/FS/FS/svc_broadband.pm b/FS/FS/svc_broadband.pm index c791dc4a4..46d046c0b 100755 --- a/FS/FS/svc_broadband.pm +++ b/FS/FS/svc_broadband.pm @@ -309,7 +309,12 @@ Returns the IP address. sub label { my $self = shift; - $self->ip_addr; + my $label = 'IP:'. ($self->ip_addr || 'Unknown'); + $label .= '", MAC:'. $self->mac_addr + if $self->mac_addr; + $label .= ' ('. $self->description. ')' + if $self->description; + return $label; } =item insert [ , OPTION => VALUE ... ]