# SalesOrderLines: Exact Online Sales Order Lines - Catalog: `ExactOnlineREST` - Schema: `SalesOrder` - Primary Keys: `ID` - Label: Sales Order Lines The data in this table is partitioned per value of the `Division` column. Can retrieve data and change data using insert, update and delete. ## Table Columns The columns of the table `SalesOrderLines` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `AmountDC` | `double` | Amount Division Currency | ☑ | Amount in the default currency of the company. | | `AmountFC` | `double` | Amount Foreign Currency | ☑ | Amount in the currency of the transaction. | | `CostCenter` | `varchar2`(8) | Cost Centre | ☐ | Reference to Cost Center. | | `CostCenterDescription` | `varchar2`(60) | Cost Centre Description | ☐ | Description of cost center. | | `CostPriceFC` | `double` | Cost Price Foreign Currency | ☐ | Item cost price. | | `CostUnit` | `varchar2`(8) | Cost Unit | ☐ | Reference to Cost Unit. | | `CostUnitDescription` | `varchar2`(60) | Cost Unit Description | ☐ | Description of cost unit. | | `CustomerItemCode` | `varchar2` | Customer Item Code | ☐ | Code the customer uses for this item. | | `CustomField` | `varchar2` | Custom Field | ☐ | | | `DeliveryDate` | `datetime` | Delivery Date | ☐ | Delivery date of this line. | | `DeliveryStatus` | `int16` | Delivery Status | ☐ | Shipping status of the sales order line. 12=Open, 20=Partial, 21=Complete, 45=Cancelled. | | `Description` | `varchar2` | Description | ☐ | Description. | | `Discount` | `double` | Discount | ☐ | Discount given on the default price. Discount = (DefaultPrice of Item - PriceItem in line) / DefaultPrice of Item. | | `Division` | `int32` | Division | ☑ | Division code. | | `DivisionCompanyCoCNumber` | `varchar2`(60) | Division Chamber of Commerce Number | ☐ | Chamber of commerce number of the Exact Online division. | | `DivisionCompanyIBANNumber` | `varchar2`(50) | Division IBAN Number | ☐ | IBAN number of the Exact Online division. | | `DivisionCompanyName` | `varchar2`(50) | Division Company Name | ☑ | Company name of the Exact Online division. | | `DivisionCompanyRSINNumber` | `varchar2`(9) | Division RSIN Number | ☐ | RSIN number of the Exact Online division. | | `DivisionCompanyVATNumber` | `varchar2`(35) | Division VAT Number | ☐ | VAT number of the Exact Online division. | | `DivisionCompanyWageTaxNumber` | `varchar2`(60) | Division Wage Tax Number | ☐ | Wage tax number of the Exact Online division. | | `DivisionLabel` | `varchar2`(128) | Division Label | ☑ | Label of the Exact Online division. | | `DivisionName` | `varchar2`(50) | Administration Name | ☑ | Name of the Exact Online division. | | `DivisionOwnerCompanyName` | `varchar2`(50) | Subscription Holder Name | ☑ | Name of the customer account in division 1 owning the Exact Online subscription to which this division belongs. | | `DivisionOwnerCompanyNumber` | `varchar2`(18) | Subscription Holder Number | ☑ | Number of the customer account in division 1 owning the Exact Online subscription to which this division belongs. | | `DivisionShortName` | `int64` | Division Short Name | ☑ | Short name of the Exact Online division. | | `ID` | `guid` | ID | ☑ | Primary key. | | `InvoiceStatus` | `int16` | Invoice Status | ☐ | Invoice status of the sales order line. 12=Open, 20=Partial, 21=Complete, 45=Cancelled. | | `Item` | `guid` | Item | ☐ | Reference to the Item that is sold in this sales order line. | | `ItemCode` | `varchar2`(30) | Item Code | ☐ | Code of the item. | | `ItemDescription` | `varchar2`(255) | Item Description | ☐ | Description of Item. | | `ItemVersion` | `guid` | Item Version | ☐ | Version of item. | | `ItemVersionDescription` | `varchar2` | Item Version Description | ☐ | Description of Item Version. | | `LineNumber` | `int32` | Line Number | ☑ | Line number. | | `Margin` | `double` | Margin | ☐ | Sales margin of the sales order line. | | `NetPrice` | `double` | Net Price | ☐ | Net price of the sales order line. | | `Notes` | `varchar2` | Notes | ☐ | Extra notes. | | `OrderID` | `guid` | Order ID | ☑ | Reference to Sales Order. All the lines of a sales order have the same OrderID. | | `OrderNumber` | `int32` | Order Number | ☑ | Number of sales order. | | `OrderStatus` | `int16` | Order Status | ☐ | The status of the sales order line. 12=Open, 20=Partial, 21=Complete, 45=Cancelled. | | `Pricelist` | `guid` | Price List | ☐ | Reference to Price List. | | `PricelistDescription` | `varchar2` | Price List Description | ☐ | Description of Price List. | | `Project` | `guid` | Project | ☐ | Reference to Project. The project can be different per line. Sometimes also the project in the header is filled although this is not really used. | | `ProjectDescription` | `varchar2`(60) | Project Description | ☐ | Description of Project. | | `PurchaseOrder` | `guid` | Purchase Order | ☐ | Reference to Purchase Order. | | `PurchaseOrderLine` | `guid` | Purchase Order Line | ☐ | Reference to Purchase Order Line. | | `PurchaseOrderLineNumber` | `int32` | Purchase Order Line Number | ☐ | Line number of referenced Purchase Order Line. | | `PurchaseOrderNumber` | `int32` | Purchase Order Number | ☐ | Number of referenced Purchase Order. | | `Quantity` | `double` | Quantity | ☐ | Number of items sold in default units. The quantity shown in the entry screen is Quantity * UnitFactor. | | `QuantityDelivered` | `double` | Quantity Delivered | ☐ | The number of items delivered. | | `QuantityInvoiced` | `double` | Quantity Invoiced | ☐ | The number of items invoiced. | | `ShopOrder` | `guid` | Shop Order | ☐ | Reference to Shop Order. | | `TaxSchedule` | `guid` | Tax Schedule | ☐ | Obsolete. | | `TaxScheduleCode` | `varchar2` | Tax Schedule Code | ☐ | Obsolete. | | `TaxScheduleDescription` | `varchar2` | Tax Schedule Description | ☐ | Obsolete. | | `UnitCode` | `varchar2`(8) | Unit Code | ☐ | Code of item unit. | | `UnitDescription` | `varchar2`(60) | Unit Description | ☐ | Description of Item Unit. | | `UnitPrice` | `double` | Unit Price | ☐ | Price per unit in the currency of the transaction. | | `UseDropShipment` | `int16` | Use Drop Shipment | ☑ | Indicates if drop shipment is used (delivery directly to customer, invoice to wholesaler). | | `VATAmount` | `double` | VAT Amount | ☐ | VAT amount in the currency of the transaction. | | `VATCode` | `varchar2`(3) | VAT Code | ☐ | VAT code. | | `VATCodeDescription` | `varchar2`(60) | VAT Code Description | ☐ | Description of VAT code. | | `VATPercentage` | `double` | VAT Percentage | ☐ | The VAT percentage of the VAT code. This is the percentage at the moment the sales order is created. It's also used for the default calculation of VAT amounts and VAT base amounts. |