so Search.tsf and Search.rdf work
[freeside.git] / FS / FS / type_pkgs.pm
index 5b3b11c..bf34e7c 100644 (file)
@@ -35,6 +35,8 @@ FS::Record.  The following fields are currently supported:
 
 =over 4
 
+=item typepkgnum - primary key
+
 =item typenum - Agent type, see L<FS::agent_type>
 
 =item pkgpart - Billing item definition, see L<FS::part_pkg>
@@ -80,7 +82,8 @@ sub check {
   my $self = shift;
 
   my $error = 
-    $self->ut_number('typenum')
+       $self->ut_numbern('typepkgnum')
+    || $self->ut_number('typenum')
     || $self->ut_number('pkgpart')
   ;
   return $error if $error;
@@ -109,10 +112,6 @@ sub part_pkg {
 
 =back
 
-=head1 VERSION
-
-$Id: type_pkgs.pm,v 1.3 2003-08-05 00:20:48 khoff Exp $
-
 =head1 BUGS
 
 =head1 SEE ALSO