X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Ftype_pkgs.pm;h=8cc2345ff7a33c521324348f1bfc5052ad0dc582;hp=65037552465b685ac9c43873b555520985845ba6;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984 diff --git a/FS/FS/type_pkgs.pm b/FS/FS/type_pkgs.pm index 650375524..8cc2345ff 100644 --- a/FS/FS/type_pkgs.pm +++ b/FS/FS/type_pkgs.pm @@ -1,12 +1,7 @@ package FS::type_pkgs; +use base qw( FS::Record ); use strict; -use vars qw( @ISA ); -use FS::Record qw( qsearchs ); -use FS::agent_type; -use FS::part_pkg; - -@ISA = qw( FS::Record ); =head1 NAME @@ -95,33 +90,19 @@ sub check { Returns the FS::part_pkg object associated with this record. -=cut - -sub part_pkg { - my $self = shift; - qsearchs( 'part_pkg', { 'pkgpart' => $self->pkgpart } ); -} - =item agent_type Returns the FS::agent_type object associated with this record. =cut -sub agent_type { - my $self = shift; - qsearchs( 'agent_type', { 'typenum' => $self->typenum } ); -} - -=cut - =back =head1 BUGS =head1 SEE ALSO -L, L, L, schema.html from the base +L, L, L, schema.html from the base documentation. =cut