Class InvoiceDelivery
Invoice Delivery component
Consolidates invoice creation and delivery. Supports email, interfax, and postalmethods.
Package: blesta\components\invoice\delivery
Copyright: Copyright (c) 2011, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/invoice_delivery/invoice_delivery.php
Copyright: Copyright (c) 2011, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at components/invoice_delivery/invoice_delivery.php
Methods summary
public
|
|
public
|
#
deliverInvoices( array $invoice_ids, string $delivery_method, mixed $deliver_to = null, string $from_staff_id = null, array $options = null )
Delivers a set of invoices using the given delivery method. All invoices are compiled together into a single document. |
public
|
#
downloadInvoices( array $invoice_ids )
Offers for download a set of invoices. All invoices are compiled together into a single document. |
public
array
|
|
private
array
|
#
getInvoices( array $invoice_ids, boolean $merge = false )
Fetches invoices and groups them by client ID |
private
object
|
#
buildInvoices( array $invoices, boolean $include_address = true )
Takes an array of invoices and constructs a single document object containing all invoice data (e.g. can create a single PDF containing multiple invoices). |
Magic methods summary
Properties summary
private
string
|
$language |
#
The language code to use for all email correspondance |
private
object
|
$company |
#
An object representing the company being processed |
private
array
|
$company_settings |
#
Company settings |
private
array
|
$invoices |
#
An array of stdClass objects representing invoices |