From 32072dbf59a054529f5304574c0f56f9567d14d0 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sat, 28 Dec 2013 16:11:46 -0800 Subject: autoload methods returning foreign records, RT#13971 --- FS/FS/cust_pkg_usage.pm | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'FS/FS/cust_pkg_usage.pm') diff --git a/FS/FS/cust_pkg_usage.pm b/FS/FS/cust_pkg_usage.pm index 0eefd74..d295842 100644 --- a/FS/FS/cust_pkg_usage.pm +++ b/FS/FS/cust_pkg_usage.pm @@ -1,10 +1,8 @@ package FS::cust_pkg_usage; +use base qw( FS::Record ); use strict; -use base qw( FS::Record ); -use FS::cust_pkg; -use FS::part_pkg_usage; -use FS::Record qw( qsearch qsearchs ); +use FS::Record qw( qsearch ); #qsearchs ); =head1 NAME @@ -139,18 +137,6 @@ Return the L linked to this record. Return the L linked to this record. -=cut - -sub cust_pkg { - my $self = shift; - FS::cust_pkg->by_key($self->pkgnum); -} - -sub part_pkg_usage { - my $self = shift; - FS::part_pkg_usage->by_key($self->pkgusagepart); -} - =back =head1 SEE ALSO -- cgit v1.1