X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Freg_code_pkg.pm;h=f438f6745a321555e8c3c50bd9bfee9f781dd2c6;hp=9b9a87712d03afcc8f12b70d053116b146a14e62;hb=bb7e827141c9ed68f30765c9ca2ddcd1d760ad2d;hpb=f583418a23dfb001978d3abf8476670d5adb96af diff --git a/FS/FS/reg_code_pkg.pm b/FS/FS/reg_code_pkg.pm index 9b9a87712..f438f6745 100644 --- a/FS/FS/reg_code_pkg.pm +++ b/FS/FS/reg_code_pkg.pm @@ -1,12 +1,7 @@ package FS::reg_code_pkg; +use base qw(FS::Record); use strict; -use vars qw( @ISA ); -use FS::Record qw(qsearchs); -use FS::reg_code; -use FS::part_pkg; - -@ISA = qw(FS::Record); =head1 NAME @@ -49,7 +44,8 @@ supported: =item new HASHREF -Creates a new example. To add the example to the database, see L<"insert">. +Creates a new registration code. To add the registration code to the database, +see L<"insert">. Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the I method. @@ -114,13 +110,6 @@ sub check { Returns the package definition (see L) -=cut - -sub part_pkg { - my $self = shift; - qsearchs('part_pkg', { 'pkgpart' => $self->pkgpart } ); -} - =back =head1 BUGS