# OrderLinesByType: Minox Order Lines by Type
Get a list of order documents by type.
- Catalog: `Minox`
- Schema: `Ordering`
- Label: Order Lines by Type
The data in this table is partitioned per value of the `administration_code` column.
This is a read-only table function. The Minox API may not support changing the data or the Invantive UniversalSQL driver for Minox does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Minox API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `OrderLinesByType`. 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 |
|---|:---:|:---:|:---:|---|
| `administration_code` | `` | ☐ | | Partition to retrieve data from. |
| `type` | `` | ☑ | | Values: concept, invoice, invoice_draft, quotation, orderresponse, packinglist, billoflading, subscription. |
## Columns of Table Function
The columns of the table function `OrderLinesByType` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `carrier_description` | `varchar2` | Carrier Description | ☐ | |
| `carrier_id` | `int64` | Carrier ID | ☐ | |
| `content` | `decimal` | Content | ☐ | |
| `cost_center_id` | `decimal` | Cost Centre ID | ☐ | |
| `credit_restriction_percent` | `decimal` | Credit Restriction Percent | ☐ | The credit restriction percentage added over the total |
| `currency_description` | `varchar2` | Currency Description | ☐ | |
| `currency_id` | `varchar2` | Currency ID | ☐ | |
| `customer_city` | `varchar2` | Customer City | ☐ | |
| `customer_contact_name` | `varchar2` | Customer Contact Name | ☐ | |
| `customer_country_code` | `varchar2` | Customer Country Code | ☐ | An ISO-3166-1-alpha2 country code. See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements |
| `customer_id` | `decimal` | Customer ID | ☐ | |
| `customer_name` | `varchar2` | Customer Name | ☐ | |
| `customer_postal_code` | `varchar2` | Customer Postal Code | ☐ | |
| `customer_salutation` | `varchar2` | Customer Salutation | ☐ | |
| `customer_streetname_and_number` | `varchar2` | Customer Street Name And Number | ☐ | |
| `customer_type_description` | `varchar2` | Customer Type Description | ☐ | |
| `customer_type_id` | `int64` | Customer Type ID | ☐ | |
| `date` | `varchar2` | Date | ☐ | |
| `delivery_address_city` | `varchar2` | Delivery Address City | ☐ | |
| `delivery_address_contact_name` | `varchar2` | Delivery Address Contact Name | ☐ | |
| `delivery_address_country_code` | `varchar2` | Delivery Address Country Code | ☐ | An ISO-3166-1-alpha2 country code. See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements |
| `delivery_address_extended_name` | `varchar2` | Delivery Address Extended Name | ☐ | |
| `delivery_address_name` | `varchar2` | Delivery Address Name | ☐ | |
| `delivery_address_postal_code` | `varchar2` | Delivery Address Postal Code | ☐ | |
| `delivery_address_streetname_and_number` | `varchar2` | Delivery Address Streetname and Number | ☐ | |
| `delivery_date` | `varchar2` | Delivery Date | ☐ | The ISO date of the delivery (is set automatically when the
document transitioned from the type billoflading) |
| `delivery_quantity` | `decimal` | Delivery Quantity | ☐ | |
| `delivery_term_description` | `varchar2` | Delivery Term Description | ☐ | |
| `delivery_term_id` | `int64` | Delivery Term ID | ☐ | |
| `description` | `varchar2` | Description | ☐ | |
| `discount_percentage_2` | `decimal` | | ☐ | The discount percentage calculated over the entire order document |
| `discount_percentage` | `decimal` | Discount Percentage | ☐ | |
| `document_number` | `decimal` | Document Number | ☐ | The number given when an order document of type orderresponse,
packinglist or billoflading is transitioned |
| `frequence` | `varchar2` | Frequence | ☐ | |
| `id` | `varchar2` | ID | ☐ | |
| `invoice_date` | `varchar2` | Invoice Date | ☐ | The ISO date for when the document transitioned to the type
invoice |
| `invoice_number` | `decimal` | Invoice Number | ☐ | The number given when an order document is transitioned to
the invoice type |
| `is_g_account_2` | `char` | | ☐ | |
| `is_g_account` | `char` | Is G-Account | ☐ | |
| `is_merge` | `char` | Is Merge | ☐ | If the order document has been created by merging multiple
order documents |
| `item_id` | `varchar2` | Item ID | ☐ | |
| `mandate_code` | `varchar2` | Mandate Code | ☐ | |
| `mandate_date` | `varchar2` | Mandate Date | ☐ | The ISO date calculated based on the invoice date and the mandate_date |
| `mandate_serial_number` | `decimal` | Mandate Serial Number | ☐ | |
| `memo` | `varchar2` | Memo | ☐ | |
| `next_invoice_date` | `varchar2` | Next Invoice Date | ☐ | The ISO date for when the document last transitioned from type
subscription to the type invoice |
| `orderresponse_date` | `varchar2` | Orderresponse Date | ☐ | The ISO date for when the document transitioned from the type
orderresponse |
| `packinglist_date` | `varchar2` | Packinglist Date | ☐ | The ISO date for when the document transitioned from the type
packinglist |
| `payment_discount_percent` | `decimal` | Payment Discount Percent | ☐ | The payment discount percentage subtracted over the total |
| `payment_term_days` | `decimal` | Payment Term Days | ☐ | |
| `payment_term_description` | `varchar2` | Payment Term Description | ☐ | |
| `payment_term_id` | `int64` | Payment Term ID | ☐ | |
| `payment_term_mandate` | `varchar2` | Payment Term Mandate | ☐ | |
| `payment_term_start` | `varchar2` | Payment Term Start | ☐ | |
| `period_number` | `decimal` | Period Number | ☐ | The period in which the invoice belongs |
| `previous_type` | `varchar2` | Previous Type | ☐ | |
| `price_per_quantity` | `decimal` | Price per Quantity | ☐ | |
| `price` | `decimal` | Price | ☐ | |
| `quantity` | `decimal` | Quantity | ☐ | |
| `quotation_date` | `varchar2` | Quotation Date | ☐ | The ISO date for when the document transitioned from the type
quotation |
| `quotation_number` | `decimal` | Quotation Number | ☐ | The number given when an order document of type quotation is
transitioned |
| `reference` | `varchar2` | Reference | ☐ | |
| `region_description` | `varchar2` | Region Description | ☐ | |
| `region_id` | `int64` | Region ID | ☐ | |
| `representative_id` | `int64` | Representative ID | ☐ | |
| `representative_name` | `varchar2` | Representative Name | ☐ | |
| `state_date` | `varchar2` | State Date | ☐ | The ISO date for when the last transition happened |
| `subscription_date` | `varchar2` | Subscription Date | ☐ | The ISO date for when the document transitioned from the type
subscription |
| `subscription_end_date` | `varchar2` | Subscription End Date | ☐ | The ISO date for when the subscription ends |
| `subscription_number` | `decimal` | Subscription Number | ☐ | The number given when an order document of type subscription
is transitioned |
| `totals_amount` | `decimal` | Totals Amount | ☐ | The total amount (before discounts and VAT) |
| `totals_credit_restriction` | `decimal` | Totals Credit Restriction | ☐ | The credit restriction |
| `totals_delivery_quantity` | `decimal` | Totals Delivery Quantity | ☐ | The total amount of items delivered |
| `totals_discount` | `decimal` | Totals Discount | ☐ | The total discount |
| `totals_payment_discount` | `decimal` | Totals Payment Discount | ☐ | The payment discount |
| `totals_quantity` | `decimal` | Totals Quantity | ☐ | The total amount of items |
| `totals_total` | `decimal` | Totals Total | ☐ | The total amount with discounts and VAT |
| `type` | `varchar2` | Type | ☐ | |
| `unit_packaging` | `decimal` | Unit Packaging | ☐ | |
| `vat_inclusive` | `char` | VAT Inclusive | ☐ | Whether the VAT amounts are included in the amounts |
| `vat_reverse_charged` | `char` | VAT Reverse Charged | ☐ | Whether the VAT amounts are reverse charged |
| `weight` | `decimal` | Weight | ☐ | |