summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg_discount.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-12-28 16:11:46 -0800
committerIvan Kohler <ivan@freeside.biz>2013-12-28 16:11:46 -0800
commit32072dbf59a054529f5304574c0f56f9567d14d0 (patch)
treeeaca19adc8da8daf4b0eaaed1a16c3a8e5a53cb0 /FS/FS/part_pkg_discount.pm
parent66c235e33563ccd785ff9e0828398f778a75fb9f (diff)
autoload methods returning foreign records, RT#13971
Diffstat (limited to 'FS/FS/part_pkg_discount.pm')
-rw-r--r--FS/FS/part_pkg_discount.pm12
1 files changed, 1 insertions, 11 deletions
diff --git a/FS/FS/part_pkg_discount.pm b/FS/FS/part_pkg_discount.pm
index 06a0fb9..73c7c8b 100644
--- a/FS/FS/part_pkg_discount.pm
+++ b/FS/FS/part_pkg_discount.pm
@@ -1,10 +1,7 @@
package FS::part_pkg_discount;
+use base qw( FS::Record );
use strict;
-use base qw( FS::Record );
-use FS::Record qw( qsearch qsearchs );
-use FS::discount;
-use FS::part_pkg;
=head1 NAME
@@ -108,13 +105,6 @@ sub check {
Returns the discount associated with this part_pkg_discount.
-=cut
-
-sub discount {
- my $self = shift;
- qsearchs('discount', { 'discountnum' => $self->discountnum });
-}
-
=back
=head1 BUGS