X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fbill_batch.pm;h=fb41e0e6b18f9bca38332f879729daad2bc6f5f0;hb=6356a7168ec51ce98145b77b095a7bc8dffb3880;hp=1a46db0b21ffa62153a1ee309d41cf37a5759f98;hpb=007fd3026ade508a9d88b436575a4797d003280a;p=freeside.git diff --git a/FS/FS/bill_batch.pm b/FS/FS/bill_batch.pm index 1a46db0b2..fb41e0e6b 100644 --- a/FS/FS/bill_batch.pm +++ b/FS/FS/bill_batch.pm @@ -1,16 +1,13 @@ package FS::bill_batch; +use base qw(FS::Record); use strict; -use vars qw( @ISA $me $DEBUG ); +use vars qw( $me $DEBUG ); use CAM::PDF; use FS::Conf; -use FS::Record qw( qsearch qsearchs dbh ); -use FS::agent; -use FS::cust_bill_batch; -@ISA = qw( FS::Record ); $me = '[ FS::bill_batch ]'; -$DEBUG=0; +$DEBUG = 0; sub table { 'bill_batch' } @@ -61,8 +58,7 @@ sub print_pdf { my $self = shift; my $job = shift; $job->update_statustext(0) if $job; - my @invoices = sort { $a->invnum <=> $b->invnum } - qsearch('cust_bill_batch', { batchnum => $self->batchnum }); + my @invoices = sort { $a->invnum <=> $b->invnum } $self->cust_bill_batch; return "No invoices in batch ".$self->batchnum.'.' if !@invoices; my $pdf_out; @@ -118,13 +114,6 @@ sub check { Returns the agent (see L) for this invoice batch. -=cut - -sub agent { - my $self = shift; - qsearchs( 'agent', { 'agentnum' => $self->agentnum } ); -} - =back =head1 SUBROUTINES