improve performance of DID provisioning status report, RT10988
[freeside.git] / FS / FS / lata.pm
index 7b42555..84a7992 100644 (file)
@@ -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