# Invoice
- Name: `Invoice`
- 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` | ☐ | | |
## Table Columns
The columns of the table `Invoice` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `BOOKYEARKEY` | `string` | Financial Year Key | | |
| `BOOKYEARKEY_ID` | `int32` | Financial Year Key ID | | |
| `BOOKYEARPERIODENR` | `int32` | Period Number | | |
| `COMMENT` | `string` | Comment | | |
| `COMPANY_CODE` | `string` | Partition Code | ☑ | |
| `COMPANY_NAME` | `string` | Partition Name | ☑ | |
| `CURRENCYCODE` | `string` | Currency Code | | |
| `DOCUMENTDATE` | `datetime` | Document Date | | |
| `DOCUMENTSEQUENCENR` | `int32` | Document Number | | |
| `EXCHANGERATE` | `double` | Exchange Rate | | |
| `EXPIRYDATE` | `datetime` | Expiry Date | | |
| `EXTERNALRELATIONID` | `int32` | External Relation ID | | |
| `FINANCIALDISCOUNT` | `double` | Financial Discount | | |
| `INVOICELINES_BOOKINGACCOUNTNR` | `int32` | Invoice Lines Account Number | | |
| `INVOICELINES_COSTCENTREKEY` | `string` | Invoice Lines Cost Center Key | | |
| `INVOICELINES_COSTCENTREKEY_ID` | `int32` | Invoice Lines Cost Centre Key ID | | |
| `INVOICELINES_COUNT` | `double` | Invoice Lines Count | | |
| `INVOICELINES_DESCRIPTION` | `string` | Invoice Lines Description | | |
| `INVOICELINES_DISCOUNTPERCENTAGE` | `double` | Invoice Lines Discount Percentage | | |
| `INVOICELINES_EXTERNPRODUCTNR` | `string` | Invoice Lines External Product Number | | |
| `INVOICELINES_UNIT` | `string` | Invoice Lines Unit | | |
| `INVOICELINES_UNITPRICE` | `double` | Invoice Lines Unit Price | | |
| `INVOICELINES_VATCODEKEY` | `string` | Invoice Lines VAT Code Key | | |
| `JOURNALKEY` | `string` | Journal Key | | |
| `REFERENCE` | `string` | Reference | | |