Difference between revisions of "Freeside:4:Documentation:Developer/FS/bill batch"
From Freeside
(Edit via perl MediaWiki framework (1.13)) |
(No difference)
|
Latest revision as of 07:17, 18 November 2015
NAME
FS::bill_batch - Object methods for bill_batch records
SYNOPSIS
use FS::bill_batch; $open_batch = FS::bill_batch->get_open_batch; my $pdf = $open_batch->print_pdf; $error = $open_batch->close;
DESCRIPTION
An FS::bill_batch object represents a batch of invoices. FS::bill_batch inherits from FS::Record. The following fields are currently supported:
- batchnum - primary key; agentnum - empty for global batches or agent (see FS::agent); status - either 'O' (open) or 'R' (resolved/closed).; pdf - blob field for temporarily storing the invoice as a PDF.
METHODS
- print_pdf
- Typeset the entire batch as a PDF file. Returns the PDF as a string.
- close
- Set the status of the batch to 'R' (resolved).
- agent
- Returns the agent (see FS::agent) for this invoice batch.
SUBROUTINES
- process_print_pdf
BUGS
SEE ALSO
FS::Record, schema.html from the base documentation.
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
- Around line 131:
- '=item' outside of any '=over'