[freeside-commits] freeside/FS/FS pkg_class.pm, 1.4, 1.4.4.1 Schema.pm, 1.239.2.49, 1.239.2.50
Erik Levinson
levinse at wavetail.420.am
Wed Jun 22 18:56:26 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv28818/FS/FS
Modified Files:
Tag: FREESIDE_2_1_BRANCH
pkg_class.pm Schema.pm
Log Message:
add optional fcc_ds0s to pkg_class, RT13057
Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.239.2.49
retrieving revision 1.239.2.50
diff -u -w -d -r1.239.2.49 -r1.239.2.50
--- Schema.pm 22 Jun 2011 17:02:16 -0000 1.239.2.49
+++ Schema.pm 23 Jun 2011 01:56:21 -0000 1.239.2.50
@@ -2508,6 +2508,7 @@
'classname', 'varchar', '', $char_d, '', '',
'categorynum', 'int', 'NULL', '', '', '',
'disabled', 'char', 'NULL', 1, '', '',
+ 'fcc_ds0s', 'int', 'NULL', '', '', '',
],
'primary_key' => 'classnum',
'unique' => [],
Index: pkg_class.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/pkg_class.pm,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -u -w -d -r1.4 -r1.4.4.1
--- pkg_class.pm 29 Oct 2009 01:08:32 -0000 1.4
+++ pkg_class.pm 23 Jun 2011 01:56:21 -0000 1.4.4.1
@@ -49,6 +49,8 @@
Disabled flag, empty or 'Y'
+=item fcc_ds0s - Optional DS0 equivalency number for FCC form 477
+
=back
=head1 METHODS
@@ -65,6 +67,16 @@
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
More information about the freeside-commits
mailing list