The InvoiceManager
class provides high-level access for creating, manipulating, saving and deleting Invoice objects in the Invoice Repository. Each action leads to execution of a pipeline chain, described later in this section. The InvoiceManager
methods are:
Method | Description |
---|---|
| Adds a new |
| Creates a new |
| Gets the invoice with the specified repository id. |
| Loads all invoices with a given invoice number. This method returns a list because an invoice number may not be unique. It is possible to have several invoices with the same invoice number but different repository id’s, for example if a new invoice is generated to reflect partial payment of an order and a reduction in the balance due. In most cases, however, this method returns a list containing only a single invoice. |
| Generates the next unique invoice number to use. |
| Loads the invoice identified by a given repository id and executes the |
| Removes the specified invoice from the repository. |
| Updates invoice properties in the invoice repository and sets the repository item’s |