From: Jonathan Prykop Date: Fri, 30 Jan 2015 21:27:36 +0000 (-0600) Subject: #32873: Hardware Service Display of variable on interface X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=66c1457c1820264d0dce794f42cf20be768c6dc3;p=freeside.git #32873: Hardware Service Display of variable on interface --- diff --git a/FS/FS/svc_hardware.pm b/FS/FS/svc_hardware.pm index dc9ac59df..16a5ea99c 100644 --- a/FS/FS/svc_hardware.pm +++ b/FS/FS/svc_hardware.pm @@ -132,7 +132,17 @@ sub search_sql { sub label { my $self = shift; - $self->serial || $self->display_hw_addr; + my @label = (); + if (my $type = $self->hardware_type) { + push @label, 'Type:' . $type->description; + } + if (my $ser = $self->serial) { + push @label, 'Serial#' . $ser; + } + if (my $mac = $self->display_hw_addr) { + push @label, 'MAC:'. $mac; + } + return join(', ', @label); } =item insert