X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Flata.pm;h=84a7992e21872ffaf1fb8227dc666921c0b095cb;hp=7b425550cef2700afa6fa2bff7fc0a34cca06457;hb=e2ee874843b19f6c5221f5ce0af90979dba34e57;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c diff --git a/FS/FS/lata.pm b/FS/FS/lata.pm index 7b425550c..84a7992e2 100644 --- a/FS/FS/lata.pm +++ b/FS/FS/lata.pm @@ -38,6 +38,7 @@ primary key description +=item have_usage - a reporting hack =back @@ -101,15 +102,19 @@ sub check { my $error = $self->ut_numbern('latanum') || $self->ut_text('description') + || $self->ut_numbern('have_usage') ; return $error if $error; $self->SUPER::check; } -=back +sub _upgrade_data { #class method + my ($class, %opts) = @_; + eval "use FS::lata_Data;"; # this automatically does the upgrade if needed +} -=head1 BUGS +=back =head1 SEE ALSO