per-agent disable_previous_balance, #15863
[freeside.git] / FS / FS / cust_bill_batch.pm
1 package FS::cust_bill_batch;
2
3 use strict;
4 use vars qw( @ISA $me $DEBUG );
5 use FS::Record qw( qsearch qsearchs dbh );
6
7 @ISA = qw( FS::option_Common );
8 $me = '[ FS::cust_bill_batch ]';
9 $DEBUG=0;
10
11 sub table { 'cust_bill_batch' }
12
13 =head1 NAME
14
15 FS::cust_bill_batch - Object methods for cust_bill_batch records
16
17 =head1 DESCRIPTION
18
19 An FS::cust_bill_batch object represents the inclusion of an invoice in a 
20 processing batch.  FS::cust_bill_batch inherits from FS::option_Common.  The 
21 following fields are currently supported:
22
23 =over 4
24
25 =item billbatchnum - primary key
26
27 =item invnum - invoice number (see C<FS::cust_bill>)
28
29 =item batchnum - batchn number (see C<FS::bill_batch>)
30
31 =back
32
33 =head1 METHODS
34
35 =over 4
36
37 =item bill_batch
38
39 Returns the C<FS::bill_batch> object.
40
41 =cut
42
43 sub bill_batch { 
44   my $self = shift;
45   FS::bill_batch->by_key($self->batchnum);
46 }
47
48 =item cust_bill
49
50 Returns the C<FS::cust_bill> object.
51
52 =cut
53
54 sub cust_bill {
55   my $self = shift;
56   FS::cust_bill->by_key($self->invnum);
57 }
58
59 =back
60
61 =head1 BUGS
62
63 =head1 SEE ALSO
64
65 L<FS::Record>, schema.html from the base documentation.
66
67 =cut
68
69 1;
70