diff options
author | mark <mark> | 2010-06-08 22:25:01 +0000 |
---|---|---|
committer | mark <mark> | 2010-06-08 22:25:01 +0000 |
commit | b7dbecfb82aea90a4289089927d0b17436b2ed5a (patch) | |
tree | 8f22377f952d54aba7efcde11a2cd3f2e8a8cf40 /FS/FS/cust_bill_batch.pm | |
parent | 3d0320979331ac4b68fc07fd4203d74c1b05aff4 (diff) |
RT#947: batch download of invoice PDFs
Diffstat (limited to 'FS/FS/cust_bill_batch.pm')
-rw-r--r-- | FS/FS/cust_bill_batch.pm | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/FS/FS/cust_bill_batch.pm b/FS/FS/cust_bill_batch.pm new file mode 100644 index 0000000..4569e6b --- /dev/null +++ b/FS/FS/cust_bill_batch.pm @@ -0,0 +1,70 @@ +package FS::cust_bill_batch; + +use strict; +use vars qw( @ISA $me $DEBUG ); +use FS::Record qw( qsearch qsearchs dbh ); + +@ISA = qw( FS::option_Common ); +$me = '[ FS::cust_bill_batch ]'; +$DEBUG=0; + +sub table { 'cust_bill_batch' } + +=head1 NAME + +FS::cust_bill_batch - Object methods for cust_bill_batch records + +=head1 DESCRIPTION + +An FS::cust_bill_batch object represents the inclusion of an invoice in a +processing batch. FS::cust_bill_batch inherits from FS::option_Common. The +following fields are currently supported: + +=over 4 + +=item billbatchnum - primary key + +=item invnum - invoice number (see C<FS::cust_bill>) + +=item batchnum - batchn number (see C<FS::bill_batch>) + +=back + +=head1 METHODS + +=over 4 + +=item bill_batch + +Returns the C<FS::bill_batch> object. + +=cut + +sub bill_batch { + my $self = shift; + FS::bill_batch->by_key($self->batchnum); +} + +=item cust_bill + +Returns the C<FS::cust_bill> object. + +=cut + +sub cust_bill { + my $self = shift; + FS::cust_bill->by_key($self->invnum); +} + +=back + +=head1 BUGS + +=head1 SEE ALSO + +L<FS::Record>, schema.html from the base documentation. + +=cut + +1; + |