http://www.freeside.biz/mediawiki/index.php?title=Freeside:4:Documentation:Developer/FS/bill_batch&feed=atom&action=historyFreeside:4:Documentation:Developer/FS/bill batch - Revision history2024-03-30T05:44:46ZRevision history for this page on the wikiMediaWiki 1.27.7http://www.freeside.biz/mediawiki/index.php?title=Freeside:4:Documentation:Developer/FS/bill_batch&diff=9045&oldid=prevJeremyd: Edit via perl MediaWiki framework (1.13)2015-11-18T15:17:31Z<p>Edit via perl MediaWiki framework (1.13)</p>
<p><b>New page</b></p><div>==NAME==<br />
FS::bill_batch - Object methods for bill_batch records<br />
<br />
==SYNOPSIS==<br />
<code><br />
use FS::bill_batch;<br />
<br />
$open_batch = FS::bill_batch->get_open_batch;<br />
<br />
my $pdf = $open_batch->print_pdf;<br />
<br />
$error = $open_batch->close;<br />
<br />
</code><br />
==DESCRIPTION==<br />
An FS::bill_batch object represents a batch of invoices. FS::bill_batch inherits from FS::Record. The following fields are currently supported:<br />
<br />
; batchnum - primary key; agentnum - empty for global batches or agent (see [[Freeside:4:Documentation:Developer/FS/agent|FS::agent]]); status - either 'O' (open) or 'R' (resolved/closed).; pdf - blob field for temporarily storing the invoice as a PDF.<br />
==METHODS==<br />
; print_pdf<br />
:Typeset the entire batch as a PDF file. Returns the PDF as a string.<br />
; close<br />
:Set the status of the batch to 'R' (resolved).<br />
; agent<br />
:Returns the agent (see [[Freeside:4:Documentation:Developer/FS/agent|FS::agent]]) for this invoice batch.<br />
<br />
==SUBROUTINES==<br />
; process_print_pdf<br />
==BUGS==<br />
==SEE ALSO==<br />
[[Freeside:4:Documentation:Developer/FS/Record|FS::Record]], schema.html from the base documentation.<br />
<br />
==POD ERRORS==<br />
Hey! '''The above document had some coding errors, which are explained below:'''<br />
<br />
; Around line 131&#58;<br />
:'=item' outside of any '=over'</div>Jeremyd