X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fsvc_hardware.pm;h=8f037f712f6a82b81b105ff6e436a963ecf5cc88;hp=96a8e762b213d4a10765ce17df8a55e3db943e17;hb=91fd4ea0e91ee9e6717e0b12e01eebb8f8b21322;hpb=4cd3537f6e3e14a596c67478bb83b2095303ec50 diff --git a/FS/FS/svc_hardware.pm b/FS/FS/svc_hardware.pm index 96a8e762b..8f037f712 100644 --- a/FS/FS/svc_hardware.pm +++ b/FS/FS/svc_hardware.pm @@ -45,6 +45,8 @@ The following fields are currently supported: =item serial - Serial number +=item smartcard - Smartcard number, for devices that use a smartcard + =item statusnum - Service status (see L) =item note - Installation notes: location on property, physical access, etc. @@ -82,6 +84,7 @@ sub table_info { 'serial' => { label => 'Serial number', %opts }, 'hw_addr' => { label => 'Hardware address', %opts }, 'ip_addr' => { label => 'IP address', %opts }, + 'smartcard' => { label => 'Smartcard #', %opts }, 'statusnum' => { label => 'Service status', type => 'select', select_table => 'hardware_status', @@ -165,6 +168,7 @@ sub check { || $self->ut_ip46n('ip_addr') || $self->ut_hexn('hw_addr') || $self->ut_alphan('serial') + || $self->ut_alphan('smartcard') || $self->ut_foreign_keyn('statusnum', 'hardware_status', 'statusnum') || $self->ut_textn('note') ;