# OrderLabelsByDocumentNumber: Fortnox Order Labels by Document Number Retrieve a single order - Catalog: `Fortnox` - Schema: `Orders` - Label: Order Labels by Document Number This is a read-only table function. The Fortnox API may not support changing the data or the Invantive UniversalSQL driver for Fortnox does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Fortnox API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `OrderLabelsByDocumentNumber`. 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 | |---|:---:|:---:|:---:|---| | `DocumentNumber` | `` | ☑ | | identifies the order | | `financialyear` | `` | ☐ | | Selects what financial year that should be used (does not work on every table). | | `financialyeardate` | `` | ☐ | | Selects by date, what financial year that should be used (does not work on every table). | | `fromdate` | `` | ☐ | | Defines a selection based on a start date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). | | `lastmodified` | `` | ☐ | | Retrieves all records since the provided timestamp (does not work on every table). | | `todate` | `` | ☐ | | Defines a selection based on an end date. Only available for invoices, orders, offers, vouchers and supplierinvoices (does not work on every table). | ## Columns of Table Function The columns of the table function `OrderLabelsByDocumentNumber` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `Address1` | `varchar2` | Address Line 1 | ☐ | | | `Address2` | `varchar2` | Address Line 2 | ☐ | | | `AdministrationFeeVAT` | `double` | Administration Fee VAT | ☐ | | | `AdministrationFee` | `double` | Administration Fee | ☐ | | | `BasisTaxReduction` | `double` | Basis Tax Reduction | ☐ | | | `Cancelled` | `char` | Cancelled | ☐ | | | `City` | `varchar2` | City | ☐ | | | `Comments` | `varchar2` | Comments | ☐ | | | `ContributionPercent` | `double` | Contribution Percent | ☐ | | | `ContributionValue` | `double` | Contribution Value | ☐ | | | `CopyRemarks` | `char` | Copy Remarks | ☐ | | | `CostCenter` | `varchar2` | Cost Centre | ☐ | | | `Country` | `varchar2` | Country | ☐ | | | `CurrencyRate` | `double` | Currency Rate | ☐ | | | `CurrencyUnit` | `double` | Currency Unit | ☐ | | | `Currency` | `varchar2(3)` | Currency | ☐ | | | `CustomerName` | `varchar2` | Customer Name | ☐ | | | `CustomerNumber` | `varchar2` | Customer Number | ☐ | | | `DeliveryAddress1` | `varchar2` | Delivery Address 1 | ☐ | | | `DeliveryAddress2` | `varchar2` | Delivery Address 2 | ☐ | | | `DeliveryCity` | `varchar2` | Delivery City | ☐ | | | `DeliveryCountry` | `varchar2` | Delivery Country | ☐ | | | `DeliveryDate` | `datetime` | Delivery Date | ☐ | | | `DeliveryName` | `varchar2` | Delivery Name | ☐ | | | `DeliveryState` | `varchar2` | Delivery State | ☐ | | | `DeliveryZipCode` | `varchar2` | Delivery Zip Code | ☐ | | | `DocumentNumber` | `varchar2` | Document Number | ☐ | | | `EmailInformation_EmailAddressBCC` | `varchar2` | Email Information Email Address Bcc | ☐ | | | `EmailInformation_EmailAddressCC` | `varchar2` | Email Information Email Address CC | ☐ | | | `EmailInformation_EmailAddressFrom` | `varchar2` | Email Information Email Address From | ☐ | | | `EmailInformation_EmailAddressTo` | `varchar2` | Email Information Email Address To | ☐ | | | `EmailInformation_EmailBody` | `varchar2` | Email Information Email Body | ☐ | | | `EmailInformation_EmailSubject` | `varchar2` | Email Information Email Subject | ☐ | | | `ExternalInvoiceReference1` | `varchar2` | External Invoice Reference 1 | ☐ | | | `ExternalInvoiceReference2` | `varchar2` | External Invoice Reference 2 | ☐ | | | `FreightVAT` | `double` | Freight VAT | ☐ | | | `Freight` | `double` | Freight | ☐ | | | `Gross` | `double` | Gross | ☐ | | | `HouseWork` | `char` | House Work | ☐ | | | `Id` | `int32` | ID | ☐ | | | `InvoiceReference` | `varchar2` | Invoice Reference | ☐ | | | `Language` | `varchar2` | Language | ☐ | | | `Net` | `double` | Net | ☐ | | | `NotCompleted` | `char` | Notcompleted | ☐ | | | `OfferReference` | `varchar2` | Offer Reference | ☐ | | | `OrderDate` | `datetime` | Order Date | ☐ | | | `OrderType` | `varchar2` | Order Type | ☐ | | | `OrganisationNumber` | `varchar2` | Organisation Number | ☐ | | | `OurReference` | `varchar2(50)` | Ourreference | ☐ | | | `OutboundDate` | `datetime` | Outbound Date | ☐ | | | `Phone1` | `varchar2` | Phone 1 | ☐ | | | `Phone2` | `varchar2` | Phone 2 | ☐ | | | `PriceList` | `varchar2` | Price List | ☐ | | | `PrintTemplate` | `varchar2` | Print Template | ☐ | | | `Project` | `varchar2` | Project | ☐ | | | `Remarks` | `varchar2(1024)` | Remarks | ☐ | | | `RoundOff` | `double` | Round Off | ☐ | | | `Sent` | `char` | Sent | ☐ | | | `StockPointCode` | `varchar2` | Stock Point Code | ☐ | | | `StockPointId` | `varchar2` | Stock Point ID | ☐ | | | `TaxReductionType` | `varchar2` | Tax Reduction Type | ☐ | | | `TaxReduction` | `double` | Tax Reduction | ☐ | | | `TermsOfDelivery` | `varchar2` | Terms of Delivery | ☐ | | | `TermsOfPayment` | `varchar2` | Terms of Payment | ☐ | | | `TimeBasisReference` | `int32` | Time Basis Reference | ☐ | | | `TotalToPay` | `double` | Total to Pay | ☐ | | | `TotalVAT` | `double` | Total VAT | ☐ | | | `Total` | `double` | Total | ☐ | | | `VATIncluded` | `char` | Vatincluded | ☐ | | | `WarehouseReady` | `char` | Warehouse Ready | ☐ | | | `WayOfDelivery` | `varchar2` | Way of Delivery | ☐ | | | `YourOrderNumber` | `varchar2(75)` | Your Order Number | ☐ | | | `YourReference` | `varchar2(50)` | Your Reference | ☐ | | | `ZipCode` | `varchar2` | ZIP Code | ☐ | | | `c_urlTaxReductionList` | `varchar2` | URL Tax Reduction List | ☐ | | | `c_url` | `varchar2` | Call URL | ☐ | |