# PrintedSalesInvoices: Exact Online Printed Sales Invoices - Catalog: `ExactOnlineREST` - Schema: `SalesInvoice` - Primary Keys: `ID` - Label: Printed Sales Invoices The data in this table is partitioned per value of the `Division` column. - Retrieve: False - Insert: True - Update: False - Delete: False ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `PrintedSalesInvoices`. 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 `select * from table(value1, value2, value3)` on a table 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 `select * from table(name1 => value1, name3 => value3)` on the same table 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` | ☐ | | ID of the division to retrieve data for. | ## Columns of Table Function The columns of the table function `PrintedSalesInvoices` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `Division` | `int32` | Division | ☐ | Division code. | | `DivisionCompanyCoCNumber` | `varchar2`(60) | Division Chamber of Commerce Number | ☐ | Chamber of commerce number of the Exact Online division. | | `DivisionCompanyIBANNumber` | `varchar2`(50) | Division IBAN Number | ☐ | IBAN number of the Exact Online division. | | `DivisionCompanyName` | `varchar2`(50) | Division Company Name | ☑ | Company name of the Exact Online division. | | `DivisionCompanyRSINNumber` | `varchar2`(9) | Division RSIN Number | ☐ | RSIN number of the Exact Online division. | | `DivisionCompanyVATNumber` | `varchar2`(35) | Division VAT Number | ☐ | VAT number of the Exact Online division. | | `DivisionCompanyWageTaxNumber` | `varchar2`(60) | Division Wage Tax Number | ☐ | Wage tax number of the Exact Online division. | | `DivisionLabel` | `varchar2`(128) | Division Label | ☑ | Label of the Exact Online division. | | `DivisionName` | `varchar2`(50) | Administration Name | ☑ | Name of the Exact Online division. | | `DivisionOwnerCompanyName` | `varchar2`(50) | Subscription Holder Name | ☑ | Name of the customer account in division 1 owning the Exact Online subscription to which this division belongs. | | `DivisionOwnerCompanyNumber` | `varchar2`(18) | Subscription Holder Number | ☑ | Number of the customer account in division 1 owning the Exact Online subscription to which this division belongs. | | `DivisionShortName` | `int64` | Division Short Name | ☑ | Short name of the Exact Online division. | | `Document` | `guid` | Document | ☐ | Contains the id of the document that was created. | | `DocumentCreationError` | `varchar2` | Document Creation Error | ☐ | Contains the error message if an error occurred during the creation of the document. | | `DocumentCreationSuccess` | `varchar2` | Document Creation Success | ☐ | Contains information if a document was successfully created. | | `DocumentLayout` | `guid` | Document Layout | ☐ | Based on this layout a PDF is created and attached to an Exact Online document and an email. | | `EmailCreationError` | `varchar2` | Email Creation Error | ☐ | Contains the error message if an error occurred during the creation of the email. | | `EmailCreationSuccess` | `varchar2` | Email Creation Success | ☐ | Contains confirmation that an email was sent. If an email cannot be delivered this property will still show confirmation that the email was sent. | | `EmailLayout` | `guid` | Email Layout | ☐ | Based on this layout the email text is produced. | | `ExtraText` | `varchar2` | Extra Text | ☐ | Extra text that can be added to the printed document and email. | | `InvoiceDate` | `datetime` | Invoice Date | ☐ | Date of the invoice. | | `InvoiceID` | `guid` | Invoice ID | ☑ | Primary key, Reference to EntryID of SalesInvoice. | | `PeppolCreationError` | `varchar2` | Peppol Creation Error | ☐ | Error during Peppol creation. | | `PeppolCreationSuccess` | `varchar2` | Peppol Creation Success | ☐ | Whether Peppol creation succeeded. | | `PostboxMessageCreationError` | `varchar2` | Postbox Message Creation Error | ☐ | Contains the error message if an error occurred during the sending of a postbox message. | | `PostboxMessageCreationSuccess` | `varchar2` | Postbox Message Creation Success | ☐ | Contains information if a postbox message was successfully sent. | | `PostboxSender` | `guid` | Postbox Sender | ☐ | The postbox from where the message is sent. | | `ReportingPeriod` | `int32` | Reporting Period | ☐ | Reporting period. | | `ReportingYear` | `int32` | Reporting Year | ☐ | Reporting year. | | `SendEmailToCustomer` | `char` | Send Email to Customer | ☐ | Set to True if an email containing the invoice should be sent to the invoice customer. This option overrules SendInvoiceToCustomerPostbox. | | `SenderEmailAddress` | `varchar2`(128) | Sender Email Address | ☐ | Email address from which the email will be sent. If not specified, the company email address will be used. | | `SendInvoiceToCustomerPostbox` | `char` | Send Invoice to Customer Postbox | ☐ | Set to True if a postbox message containing the invoice should be sent to the invoice customer. | | `SendInvoiceViaPeppol` | `char` | Send Invoice via Peppol | ☐ | Whether to send via Peppol. | | `SendOutputBasedOnAccount` | `char` | Send Output Based on Account | ☐ | 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. |