projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add optional fcc_ds0s to pkg_class, RT13057
[freeside.git]
/
FS
/
FS
/
pkg_class.pm
diff --git
a/FS/FS/pkg_class.pm
b/FS/FS/pkg_class.pm
index
51d0455
..
8132dd5
100644
(file)
--- 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'
Disabled flag, empty or 'Y'
+=item fcc_ds0s - Optional DS0 equivalency number for FCC form 477
+
=back
=head1 METHODS
=back
=head1 METHODS
@@
-65,6
+67,16
@@
L<"insert">.
sub table { 'pkg_class'; }
sub _target_table { 'part_pkg'; }
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
=item insert
Adds this package class to the database. If there is an error, returns the