X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Ftower.pm;h=b02e2ab871e3132511d7d0e2e761e7142599ffb0;hb=d81d88c7ec4a69aaf14a9da961e16c8af630fd68;hp=227e3eb6608fa7ff4b3a7bb0d02ca0c022268b03;hpb=c81adbf7bbaa537b650f39bb76ce0b7b8c069450;p=freeside.git diff --git a/FS/FS/tower.pm b/FS/FS/tower.pm index 227e3eb66..b02e2ab87 100644 --- a/FS/FS/tower.pm +++ b/FS/FS/tower.pm @@ -44,6 +44,14 @@ Tower name Disabled flag, empty or 'Y' +=item up_rate + +Up Rate for towner + +=item down_rate + +Down Rate for tower + =back =head1 METHODS @@ -59,8 +67,6 @@ points to. You can ask the object for a copy with the I method. =cut -# the new method can be inherited from FS::Record, if a table method is defined - sub table { 'tower'; } =item insert @@ -68,23 +74,15 @@ sub table { 'tower'; } Adds this record to the database. If there is an error, returns the error, otherwise returns false. -=cut - =item delete Delete this record from the database. -=cut - =item replace OLD_RECORD Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false. -=cut - -# the replace method can be inherited from FS::Record - =item check Checks all fields to make sure this is a valid tower. If there is @@ -93,9 +91,6 @@ and replace methods. =cut -# the check method should currently be supplied - FS::Record contains some -# data checking routines - sub check { my $self = shift; @@ -103,6 +98,15 @@ sub check { $self->ut_numbern('towernum') || $self->ut_text('towername') || $self->ut_enum('disabled', [ '', 'Y' ]) + || $self->ut_coordn('latitude') + || $self->ut_coordn('longitude') + || $self->ut_enum('coord_auto', [ '', 'Y' ]) + || $self->ut_floatn('altitude') + || $self->ut_floatn('height') + || $self->ut_floatn('veg_height') + || $self->ut_alphan('color') + || $self->ut_numbern('up_rate') + || $self->ut_numbern('down_rate') ; return $error if $error;