X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpkg_svc.pm;h=4efffd9b3d6b5e51fbdb9ac0a3f06358e3bcc317;hb=87a59b1bdf236765177c27ab18390ef1317cc34c;hp=9f3a4a1b711174e860a98ef1639a15ec9d99ca04;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/FS/FS/pkg_svc.pm b/FS/FS/pkg_svc.pm index 9f3a4a1b7..4efffd9b3 100644 --- a/FS/FS/pkg_svc.pm +++ b/FS/FS/pkg_svc.pm @@ -1,12 +1,7 @@ package FS::pkg_svc; +use base qw(FS::Record); use strict; -use vars qw( @ISA ); -use FS::Record qw( qsearchs ); -use FS::part_pkg; -use FS::part_svc; - -@ISA = qw( FS::Record ); =head1 NAME @@ -50,6 +45,8 @@ definition includes =item primary_svc - primary flag, empty or 'Y' +=item hidden - 'Y' to hide this service on invoices, null otherwise. + =back =head1 METHODS @@ -109,6 +106,7 @@ sub check { || $self->ut_number('pkgpart') || $self->ut_number('svcpart') || $self->ut_number('quantity') + || $self->ut_enum('hidden', [ '', 'Y' ] ) ; return $error if $error; @@ -127,24 +125,10 @@ sub check { Returns the FS::part_pkg object (see L). -=cut - -sub part_pkg { - my $self = shift; - qsearchs( 'part_pkg', { 'pkgpart' => $self->pkgpart } ); -} - =item part_svc Returns the FS::part_svc object (see L). -=cut - -sub part_svc { - my $self = shift; - qsearchs( 'part_svc', { 'svcpart' => $self->svcpart } ); -} - =back =head1 BUGS