diff options
author | levinse <levinse> | 2011-06-23 01:55:51 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-06-23 01:55:51 +0000 |
commit | 3545cf7c664f5cd24a5c4e9cf8c7ef368ac51f1f (patch) | |
tree | 48b2b3895869dcb6d4dd41d4b587934ed7722dcd /FS/FS/pkg_class.pm | |
parent | 1070837a51a12ce1e46242dfdff99daa7b96da61 (diff) |
add optional fcc_ds0s to pkg_class, RT13057
Diffstat (limited to 'FS/FS/pkg_class.pm')
-rw-r--r-- | FS/FS/pkg_class.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/FS/FS/pkg_class.pm b/FS/FS/pkg_class.pm index 51d0455a5..8132dd514 100644 --- a/FS/FS/pkg_class.pm +++ b/FS/FS/pkg_class.pm @@ -49,6 +49,8 @@ Number of associated pkg_category (see L<FS::pkg_category>) Disabled flag, empty or 'Y' +=item fcc_ds0s - Optional DS0 equivalency number for FCC form 477 + =back =head1 METHODS @@ -65,6 +67,16 @@ L<"insert">. sub table { 'pkg_class'; } sub _target_table { 'part_pkg'; } +sub check { + my $self = shift; + my $error = $self->ut_numbern('fcc_ds0s') + || $self->SUPER::check + ; + return $error if $error; + + ''; +} + =item insert Adds this package class to the database. If there is an error, returns the |