# eol_invoice.print: Exact Online Invoice metadata package
eol_invoice.print: Exact Online Invoice metadata package
Print an invoice.
Documentation
Print an invoice and return results.Parameters of Procedure
The following parameters can be used to control the behaviour of the procedure `eol_invoice.print`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `begin package.procedure(value1, value2, value3); end` on a procedure with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `begin package.procedure(name1 => value1, name3 => value3); end` on the same procedure will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `Division` | `int32` | ☑ | | Division code. |
| `Document` | `guid` | ☐ | | Contains the id of the document that was created. |
| `DocumentLayout` | `guid` | ☐ | | Based on this layout a PDF is created and attached to an Exact Online document and an email. |
| `EmailLayout` | `guid` | ☐ | | Based on this layout the email text is produced. |
| `ExtraText` | `string` | ☐ | | Extra text that can be added to the printed document and email. |
| `InvoiceDate` | `datetime` | ☐ | | Date of the invoice. |
| `InvoiceID` | `guid` | ☑ | | Primary key, Reference to EntryID of SalesInvoice. |
| `PostboxSender` | `guid` | ☐ | | The postbox from where the message is sent. |
| `ReportingPeriod` | `int32` | ☐ | | Reporting period. |
| `ReportingYear` | `int32` | ☐ | | Reporting year. |
| `SendEmailToCustomer` | `boolean` | ☑ | False | Set to True if an email containing the invoice should be sent to the invoice customer. This option overrules SendInvoiceToCustomerPostbox. |
| `SendInvoiceToCustomerPostbox` | `boolean` | ☑ | False | Set to True if a postbox message containing the invoice should be sent to the invoice customer. |
| `SendInvoiceViaPeppol` | `boolean` | ☑ | False | Whether to send via Peppol. |
| `SendOutputBasedOnAccount` | `boolean` | ☑ | False | Set to True if the output preference should be taken from the account. It will be either Document only, Email or Digital postbox. This option overrules both SendEmailToCustomer and SendInvoiceToCustomerPostbox. |
| `SenderEmailAddress` | `string` | ☐ | | Email address from which the email will be sent. If not specified, the company email address will be used. |
| `MapApiErrorToMessage` | `boolean` | ☑ | True | Set to True when an API error such as a broken business rule must be mapped to a message. |