X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fsvc_dsl.pm;h=8c47f8887e9150eb90805f86abc70ac8fbdca504;hb=7f5e32275a5a2674fd1d220cd651b222b9831476;hp=b02e74fa7285192c7edb1114a63e4bf3b0341337;hpb=b218c7e7a70ab56ae878b8456c61050f80af77f8;p=freeside.git diff --git a/FS/FS/svc_dsl.pm b/FS/FS/svc_dsl.pm index b02e74fa7..8c47f8887 100644 --- a/FS/FS/svc_dsl.pm +++ b/FS/FS/svc_dsl.pm @@ -137,6 +137,7 @@ sub table_info { 'sorts' => [ 'phonenum' ], 'display_weight' => 55, 'cancel_weight' => 75, + 'ip_field' => 'staticips', 'fields' => { 'pushed' => { label => 'Pushed', type => 'disabled' }, @@ -279,6 +280,15 @@ sub check { $self->SUPER::check; } +=item gateway_access_or_phonenum + +=cut + +sub gateway_access_or_phonenum { + my $self = shift; + $self->gateway_access_number || $self->phonenum; +} + =item dsl_device Returns the MAC addresses associated with this DSL service, as FS::dsl_device