X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Flata.pm;h=84a7992e21872ffaf1fb8227dc666921c0b095cb;hp=7b425550cef2700afa6fa2bff7fc0a34cca06457;hb=db5785cba180e2c210d3ab4d37064c7e61898614;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 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