# OfferLinesByDocumentNumber: Fortnox Offer Lines by Document Number
Retrieve a single offer
- Catalog: `Fortnox`
- Schema: `Offers`
- Label: Offer Lines 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 `OfferLinesByDocumentNumber`. 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 offer |
| `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 `OfferLinesByDocumentNumber` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `AccountNumber` | `int32` | Account Number | ☐ | |
| `Address1` | `varchar2(1024)` | Address Line 1 | ☐ | |
| `Address2` | `varchar2(1024)` | Address Line 2 | ☐ | |
| `AdministrationFeeVAT` | `double` | Administration Fee VAT | ☐ | |
| `AdministrationFee` | `double` | Administration Fee | ☐ | |
| `ArticleNumber` | `varchar2` | Article Number | ☐ | |
| `BasisTaxReduction` | `double` | Basis Tax Reduction | ☐ | |
| `Cancelled` | `char` | Cancelled | ☐ | |
| `City` | `varchar2(1024)` | City | ☐ | |
| `Comments` | `varchar2(1024)` | Comments | ☐ | |
| `ContributionPercent_2` | `double` | Contribution Percent 2 | ☐ | |
| `ContributionPercent` | `varchar2` | Contribution Percent | ☐ | |
| `ContributionValue_2` | `double` | Contribution Value 2 | ☐ | |
| `ContributionValue` | `varchar2` | Contribution Value | ☐ | |
| `CopyRemarks` | `char` | Copy Remarks | ☐ | |
| `CostCenter_2` | `varchar2` | Cost Centre 2 | ☐ | |
| `CostCenter` | `varchar2` | Cost Centre | ☐ | |
| `Country` | `varchar2` | Country | ☐ | |
| `CurrencyRate` | `double` | Currency Rate | ☐ | |
| `CurrencyUnit` | `int32` | Currency Unit | ☐ | |
| `Currency` | `varchar2` | Currency | ☐ | |
| `CustomerName` | `varchar2` | Customer Name | ☐ | |
| `CustomerNumber` | `varchar2` | Customer Number | ☐ | |
| `DeliveryAddress1` | `varchar2(1024)` | Delivery Address 1 | ☐ | |
| `DeliveryAddress2` | `varchar2(1024)` | Delivery Address 2 | ☐ | |
| `DeliveryCity` | `varchar2(1024)` | Delivery City | ☐ | |
| `DeliveryCountry` | `varchar2` | Delivery Country | ☐ | |
| `DeliveryDate` | `datetime` | Delivery Date | ☐ | |
| `DeliveryName` | `varchar2(1024)` | Delivery Name | ☐ | |
| `DeliveryZipCode` | `varchar2` | Delivery Zip Code | ☐ | |
| `Description` | `varchar2` | Description | ☐ | |
| `DiscountType` | `varchar2` | Discount Type | ☐ | |
| `Discount` | `double` | Discount | ☐ | |
| `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(20000)` | Email Information Email Body | ☐ | |
| `EmailInformation_EmailSubject` | `varchar2(100)` | Email Information Email Subject | ☐ | |
| `ExpireDate` | `datetime` | Expiry Date | ☐ | |
| `FreightVAT` | `double` | Freight VAT | ☐ | |
| `Freight` | `double` | Freight | ☐ | |
| `Gross` | `double` | Gross | ☐ | |
| `HouseWorkHoursToReport` | `double` | House Work Hours to Report | ☐ | |
| `HouseWorkType` | `varchar2` | House Worktype | ☐ | |
| `HouseWork_2` | `char` | House Work 2 | ☐ | |
| `HouseWork` | `char` | House Work | ☐ | |
| `InvoiceReference` | `varchar2` | Invoice Reference | ☐ | |
| `Language` | `varchar2` | Language | ☐ | |
| `Net` | `double` | Net | ☐ | |
| `NotCompleted` | `char` | Notcompleted | ☐ | |
| `OfferDate` | `datetime` | Offer Date | ☐ | |
| `OrderReference` | `varchar2` | Order Reference | ☐ | |
| `OrganisationNumber` | `varchar2` | Organisation Number | ☐ | |
| `OurReference` | `varchar2` | Ourreference | ☐ | |
| `Phone1` | `varchar2` | Phone 1 | ☐ | |
| `Phone2` | `varchar2` | Phone 2 | ☐ | |
| `PriceList` | `varchar2` | Price List | ☐ | |
| `Price` | `double` | Price | ☐ | |
| `PrintTemplate` | `varchar2` | Print Template | ☐ | |
| `Project_2` | `varchar2` | Project 2 | ☐ | |
| `Project` | `varchar2` | Project | ☐ | |
| `Quantity` | `varchar2` | Quantity | ☐ | |
| `Remarks` | `varchar2` | Remarks | ☐ | |
| `RoundOff` | `double` | Round Off | ☐ | |
| `RowId` | `int32` | Row ID | ☐ | |
| `Sent` | `char` | Sent | ☐ | |
| `TaxReductionType` | `varchar2` | Tax Reduction Type | ☐ | |
| `TaxReduction` | `int32` | Tax Reduction | ☐ | |
| `TermsOfDelivery` | `varchar2` | Terms of Delivery | ☐ | |
| `TermsOfPayment` | `varchar2` | Terms of Payment | ☐ | |
| `TotalToPay` | `double` | Total to Pay | ☐ | |
| `TotalVAT` | `double` | Total VAT | ☐ | |
| `Total_2` | `double` | Total 2 | ☐ | |
| `Total` | `double` | Total | ☐ | |
| `Unit` | `varchar2` | Unit | ☐ | |
| `VATCode` | `varchar2` | VAT Code | ☐ | |
| `VATIncluded` | `char` | Vatincluded | ☐ | |
| `VAT` | `int32` | VAT | ☐ | |
| `WayOfDelivery` | `varchar2` | Way of Delivery | ☐ | |
| `YourReferenceNumber` | `varchar2` | Your Reference Number | ☐ | |
| `YourReference` | `varchar2` | Your Reference | ☐ | |
| `ZipCode` | `varchar2` | ZIP Code | ☐ | |
| `c_urlTaxReductionList` | `varchar2` | URL Tax Reduction List | ☐ | |
| `c_url` | `varchar2` | Call URL | ☐ | |