autoload methods returning foreign records, RT#13971
[freeside.git] / FS / FS / quotation_pkg.pm
index efff968..c9724d1 100644 (file)
@@ -1,11 +1,7 @@
 package FS::quotation_pkg;
+use base qw( FS::TemplateItem_Mixin FS::Record );
 
 use strict;
-use base qw( FS::TemplateItem_Mixin FS::Record );
-use FS::Record qw( qsearchs ); #qsearch
-use FS::part_pkg;
-use FS::cust_location;
-use FS::quotation;
 use FS::quotation_pkg_discount; #so its loaded when TemplateItem_Mixin needs it
 
 =head1 NAME
@@ -130,11 +126,6 @@ sub check {
   $self->SUPER::check;
 }
 
-sub part_pkg {
-  my $self = shift;
-  qsearchs('part_pkg', { 'pkgpart' => $self->pkgpart } );
-}
-
 sub desc {
   my $self = shift;
   $self->part_pkg->pkg;