diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-12-28 16:11:46 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-12-28 16:11:46 -0800 |
commit | 32072dbf59a054529f5304574c0f56f9567d14d0 (patch) | |
tree | eaca19adc8da8daf4b0eaaed1a16c3a8e5a53cb0 /FS/FS/cust_pkg_discount.pm | |
parent | 66c235e33563ccd785ff9e0828398f778a75fb9f (diff) |
autoload methods returning foreign records, RT#13971
Diffstat (limited to 'FS/FS/cust_pkg_discount.pm')
-rw-r--r-- | FS/FS/cust_pkg_discount.pm | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/FS/FS/cust_pkg_discount.pm b/FS/FS/cust_pkg_discount.pm index d82d949..b74a231 100644 --- a/FS/FS/cust_pkg_discount.pm +++ b/FS/FS/cust_pkg_discount.pm @@ -1,9 +1,8 @@ package FS::cust_pkg_discount; +use base qw( FS::otaker_Mixin FS::cust_main_Mixin FS::Record ); use strict; -use base qw( FS::otaker_Mixin FS::cust_main_Mixin FS::Record ); -use FS::Record qw( dbh qsearchs ); # qsearch ); -use FS::cust_pkg; +use FS::Record qw( dbh ); # qsearch qsearchs dbh ); use FS::discount; =head1 NAME @@ -184,24 +183,10 @@ sub check { Returns the customer package (see L<FS::cust_pkg>). -=cut - -sub cust_pkg { - my $self = shift; - qsearchs('cust_pkg', { 'pkgnum' => $self->pkgnum } ); -} - =item discount Returns the discount (see L<FS::discount>). -=cut - -sub discount { - my $self = shift; - qsearchs('discount', { 'discountnum' => $self->discountnum } ); -} - =item increment_months_used MONTHS Increments months_used by the given parameter |