# ExportInvoice
- Name: `ExportInvoice`
- Catalog: `Octopus`
- Schema: `OctopusWS`
## Parameters of Table Function
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `bookyearKey_id` | `int32` | ☐ | | |
| `COMPANY_CODE` | `string` | ☐ | | |
| `documentSequenceNr` | `int32` | ☐ | | |
| `journalKey` | `string` | ☐ | | |
| `returnEInvoice` | `boolean` | ☐ | | |
| `returnInvoice` | `boolean` | ☐ | | |
| `returnPdfDocument` | `boolean` | ☐ | | |
## Table Columns
The columns of the table `ExportInvoice` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `COMPANY_CODE` | `string` | Partition Code | ☑ | |
| `COMPANY_NAME` | `string` | Partition Name | ☑ | |
| `EINVOICEXML` | `byte[]` | eInvoice XML | | |
| `INVOICE_BOOKYEARKEY` | `string` | Invoice Financial Year Key | | |
| `INVOICE_BOOKYEARKEY_ID` | `int32` | Financial Year Key ID | | |
| `INVOICE_BOOKYEARPERIODENR` | `int32` | Invoice Period Number | | |
| `INVOICE_COMMENT` | `string` | Invoice Comment | | |
| `INVOICE_CURRENCYCODE` | `string` | Invoice Currency Code | | |
| `INVOICE_DOCUMENTDATE` | `datetime` | Invoice Document Date | | |
| `INVOICE_DOCUMENTSEQUENCENR` | `int32` | Invoice Document Number | | |
| `INVOICE_EXCHANGERATE` | `double` | Invoice Exchange Rate | | |
| `INVOICE_EXPIRYDATE` | `datetime` | Invoice Expiry Date | | |
| `INVOICE_EXTERNALRELATIONID` | `int32` | Invoice External Relation ID | | |
| `INVOICE_FINANCIALDISCOUNT` | `double` | Invoice Financial Discount | | |
| `INVOICE_INVOICELINES_BOOKINGACCOUNTNR` | `int32` | Invoice Lines Account Number | | |
| `INVOICE_INVOICELINES_COSTCENTREKEY` | `string` | Invoice Lines Cost Center Key | | |
| `INVOICE_INVOICELINES_COSTCENTREKEY_ID` | `int32` | Invoice Lines Cost Center Key ID | | |
| `INVOICE_INVOICELINES_COUNT` | `double` | Invoice Lines Count | | |
| `INVOICE_INVOICELINES_DESCRIPTION` | `string` | Invoice Lines Description | | |
| `INVOICE_INVOICELINES_DISCOUNTPERCENTAGE` | `double` | Invoice Lines Discount Percentage | | |
| `INVOICE_INVOICELINES_EXTERNPRODUCTNR` | `string` | Invoice Lines External Product Number | | |
| `INVOICE_INVOICELINES_UNIT` | `string` | Invoice Lines Unit | | |
| `INVOICE_INVOICELINES_UNITPRICE` | `double` | Invoice Lines Unit Price | | |
| `INVOICE_INVOICELINES_VATCODEKEY` | `string` | Invoice Lines VAT Code Key | | |
| `INVOICE_JOURNALKEY` | `string` | Invoice Journal Key | | |
| `INVOICE_REFERENCE` | `string` | Invoice Reference | | |
| `PDFDOCUMENT` | `byte[]` | PDF Document | | |
| `PUBLISHURL` | `string` | Publish URL | | |
| `RETURN` | `int32` | Return | | |