X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fsvc_dsl.pm;h=89f1159bd2e7f7b26b41e946008f1e443e4ff5c5;hb=b79a8cb932946c849328a3c117c35821d9d21e66;hp=89827e8d75476e2a515516ab703bc567b7f9cda3;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/FS/FS/svc_dsl.pm b/FS/FS/svc_dsl.pm index 89827e8d7..89f1159bd 100644 --- a/FS/FS/svc_dsl.pm +++ b/FS/FS/svc_dsl.pm @@ -4,6 +4,7 @@ use strict; use vars qw( @ISA $conf $DEBUG $me ); use FS::Record qw( qsearch qsearchs ); use FS::svc_Common; +use FS::dsl_device; use FS::dsl_note; use FS::qual; @@ -129,6 +130,8 @@ sub table_info { { 'name' => 'DSL', + 'name_plural' => 'DSLs', + 'lcname_plural' => 'DSLs', 'sorts' => [ 'phonenum' ], 'display_weight' => 55, 'cancel_weight' => 75, @@ -137,8 +140,8 @@ sub table_info { type => 'disabled' }, 'desired_due_date' => { label => 'Desired Due Date', %dis2, }, 'due_date' => { label => 'Due Date', %dis2, }, - 'vendor_order_id' => { label => 'Vendor Order Id', %dis2, }, - 'vendor_qual_id' => { label => 'Vendor Qualification Id', + 'vendor_order_id' => { label => 'Vendor Order ID', %dis2, }, + 'vendor_qual_id' => { label => 'Vendor Qualification ID', type => 'disabled' }, 'vendor_order_type' => { label => 'Vendor Order Type', disable_inventory => 1, @@ -248,8 +251,8 @@ sub check { || $self->ut_textn('vendor_qual_id') || $self->ut_alphan('vendor_order_type') || $self->ut_alphan('vendor_order_status') - || $self->ut_text('first') - || $self->ut_text('last') + || $self->ut_textn('first') + || $self->ut_textn('last') || $self->ut_textn('company') || $self->ut_numbern('phonenum') || $self->ut_alphasn('loop_type') @@ -271,6 +274,18 @@ sub check { $self->SUPER::check; } +=item dsl_device + +Returns the MAC addresses associated with this DSL service, as FS::dsl_device +objects. + +=cut + +sub dsl_device { + my $self = shift; + qsearch('dsl_device', { 'svcnum' => $self->svcnum }); +} + sub predelete_hook_first { my $self = shift; my @exports = $self->part_svc->part_export_dsl_pull;