summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-01-30 15:27:36 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-02-02 15:28:21 -0600
commit4c6648c06d62df50aeb39baf81552ecde0a5f6ba (patch)
tree2f1849b1a4c27f80b7c72a2b1e3e4991b4d9b53d
parentb403c08477da81266b789e103767f096daff4828 (diff)
#32873: Hardware Service Display of variable on interface
-rw-r--r--FS/FS/svc_hardware.pm12
1 files changed, 11 insertions, 1 deletions
diff --git a/FS/FS/svc_hardware.pm b/FS/FS/svc_hardware.pm
index b28cc9ef5..d9c3c464e 100644
--- a/FS/FS/svc_hardware.pm
+++ b/FS/FS/svc_hardware.pm
@@ -133,7 +133,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