# SO_HDR: Sales orders
- Name: `SO_HDR`
- Catalog: `AccountView`
- Label: Sales orders
- Partition-specific: true
- Select: true
- Insert: false
- Update: false
- Delete: false
## Table Columns
The columns of the table `SO_HDR` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `ACCT_NAME` | `string(40)` | Company name | ☐ | |
| `ADDRESS1` | `string(80)` | Address | ☐ | |
| `APX_LIST` | `string(5)` | Price list item prices | ☐ | |
| `ART_DATE_W` | `string(40)` | Order date written out | ☐ | |
| `ASS_CODE` | `string(10)` | Serial number | ☐ | |
| `ASS_OLD` | `string(10)` | Switch-over licence | ☐ | |
| `AUTH_HIST` | `string(4)` | Approval history | ☐ | |
| `AVG_VAT` | `int64` | Average VAT percentage order | ☐ | |
| `BCC_EMAIL` | `string(4)` | Bcc | ☐ | |
| `BLK_AMT` | `int64` | G-account amount | ☐ | |
| `BV_AMT` | `int64` | UWV amount | ☐ | |
| `CC_EMAIL` | `string(4)` | Cc | ☐ | |
| `CITY` | `string(35)` | City | ☐ | |
| `CNG_DATE` | `datetime` | Date modified | ☐ | |
| `CNG_NR` | `int32` | Change number | ☐ | |
| `CNG_USR` | `string(20)` | Employee last modified | ☐ | |
| `CNT_CODE` | `string(2)` | ISO country code | ☐ | |
| `COMMENT1` | `string(40)` | Sales order description | ☐ | |
| `COMMENT2` | `string(4)` | External note | ☐ | |
| `COMMENT3` | `string(4)` | Internal note | ☐ | |
| `COST_CODE` | `string(10)` | Cost centre code | ☐ | |
| `COUNTRY` | `string(30)` | Country | ☐ | |
| `CRED_DAYS` | `decimal` | Payment term in days | ☐ | |
| `CRED_LIM_P` | `decimal` | Credit limitation percentage order | ☐ | |
| `CUR_CODE` | `string(3)` | Currency code | ☐ | |
| `CUR_UNIT` | `int64` | Currency unit order | ☐ | |
| `DATE_NOT` | `boolean` | Send email to salesperson when delivery date changes | ☐ | |
| `DD_ACT` | `boolean` | Direct debit | ☐ | |
| `DEL_ADDR` | `string(4)` | Shipping address | ☐ | |
| `DEL_CODE` | `string(10)` | Delivery address code | ☐ | |
| `DEL_CP` | `string(40)` | Shipping customer contact | ☐ | |
| `DEL_DATE` | `datetime` | Delivery date | ☐ | |
| `DEL_NOT` | `boolean` | Send email when sales order can be delivered | ☐ | |
| `DEL_PP` | `string(10)` | Shipping customer contact | ☐ | |
| `DEL_PP_OMS` | `string(40)` | Shipping customer contact name | ☐ | |
| `DEL_WEEK` | `int32` | Delivery date (week) | ☐ | |
| `DISC_CODE` | `string(2)` | Payment term code | ☐ | |
| `DISC_DAYS` | `decimal` | Discount term in days | ☐ | |
| `DISC_DESC` | `string(40)` | Payment term description | ☐ | |
| `EMP_NR` | `string(10)` | Salesperson | ☐ | |
| `EXCH_RATE` | `decimal` | Exchange rate | ☐ | |
| `EXCHA_RATE` | `decimal` | Exchange rate | ☐ | |
| `EXP_DATE` | `datetime` | Due date | ☐ | |
| `EXP_WEEK` | `int32` | Due date (week) | ☐ | |
| `GROSS_FLG` | `boolean` | Show base amount incl. VAT | ☐ | |
| `INP_DATE` | `datetime` | Entry date | ☐ | |
| `INP_USR` | `string(20)` | Entered by employee | ☐ | |
| `INV_ADDR` | `string(4)` | Invoice address in country-specific layout | ☐ | |
| `INV_CP` | `string(40)` | Invoice customer contact | ☐ | |
| `INV_DATE` | `datetime` | Invoice date | ☐ | |
| `INV_PP` | `string(10)` | Invoice customer contact | ☐ | |
| `INV_PP_OMS` | `string(40)` | Invoice customer contact name | ☐ | |
| `INV_WEEK` | `int32` | Invoice date (week) | ☐ | |
| `LB_AMT` | `int64` | Payroll tax amount | ☐ | |
| `LNG_CODE` | `string(5)` | Language code | ☐ | |
| `MAND_B2B` | `boolean` | Direct debit type: business | ☐ | |
| `MAND_DATE` | `datetime` | Signature date | ☐ | |
| `MAND_ID` | `string(35)` | Direct debit mandate reference | ☐ | |
| `MAND_SEQ` | `int32` | Direct debit mandate | ☐ | |
| `ORD_BO` | `boolean` | Items on backorder | ☐ | |
| `ORD_COLL` | `boolean` | Order picked | ☐ | |
| `ORD_COMPL` | `boolean` | All ordered goods processed | ☐ | |
| `ORD_COST` | `int64` | Order costs | ☐ | |
| `ORD_DATE` | `datetime` | Sales order date | ☐ | |
| `ORD_INVD` | `boolean` | Order invoiced | ☐ | |
| `ORD_KEEP` | `boolean` | Recurring order | ☐ | |
| `ORD_NR` | `string(10)` | Sales order no. | ☐ | |
| `ORD_PROC` | `boolean` | Delivery processed but not invoiced | ☐ | |
| `ORD_SHIP` | `boolean` | Quantity to deliver entered | ☐ | |
| `ORD_STAT` | `decimal` | Approval stage | ☐ | |
| `ORD_TOT` | `int64` | Total | ☐ | |
| `ORD_WEEK` | `int32` | Sales order date (week) | ☐ | |
| `PAC_NR` | `string(10)` | Delivery note number | ☐ | |
| `PAGE_BLK` | `boolean` | Sales order blocked | ☐ | |
| `partition_code` | `string` | Partition code | ☑ | |
| `partition_name` | `string` | Partition name | ☑ | |
| `PAY_AMT` | `int64` | Deposit amount | ☐ | |
| `PCT_LIST` | `string(5)` | Discount percentages price list | ☐ | |
| `PD_AMT` | `int64` | Payment discount amount | ☐ | |
| `PD_PCT` | `decimal` | Payment discount percentage | ☐ | |
| `PD_VAT` | `int64` | VAT on payment discount | ☐ | |
| `PO_BOX` | `string(80)` | Postal address | ☐ | |
| `PO_CITY` | `string(35)` | Postal address city | ☐ | |
| `PO_CODE` | `string(10)` | Postal address postcode | ☐ | |
| `POL_PRIO` | `decimal` | Delivery priority | ☐ | |
| `POST_CODE` | `string(10)` | Postcode | ☐ | |
| `PREF_DATE` | `datetime` | Promised delivery date | ☐ | |
| `PREF_WEEK` | `int32` | Promised delivery date (week) | ☐ | |
| `PROJ_CODE` | `string(10)` | Project code | ☐ | |
| `QT_ORD_NR` | `string(10)` | Quotation number | ☐ | |
| `RPL_D_OMS` | `string(40)` | Shipping customer name | ☐ | |
| `RPL_DEL` | `string(10)` | Shipping customer | ☐ | |
| `RPL_I_OMS` | `string(40)` | Invoice customer name | ☐ | |
| `RPL_INV` | `string(10)` | Invoice customer | ☐ | |
| `SALES_PERS` | `string(40)` | Salesperson | ☐ | |
| `SBS_NR` | `string(10)` | Subscription | ☐ | |
| `SEL_CODE` | `string(5)` | Selection code | ☐ | |
| `SG_CODE` | `string(10)` | Version | ☐ | |
| `SHIP_COMP` | `boolean` | No partial deliveries allowed | ☐ | |
| `SHIP_COST` | `int64` | Transport costs | ☐ | |
| `SHIP_DESC` | `string(40)` | Transport method description | ☐ | |
| `SHIP_MTH` | `string(10)` | Transport method | ☐ | |
| `SOH_TYPE` | `int32` | Order type | ☐ | |
| `ST_EXTRA` | `string(10)` | Address addition | ☐ | |
| `ST_NR` | `string(10)` | House number | ☐ | |
| `ST_PROP` | `string(40)` | Building | ☐ | |
| `ST_REGION` | `string(40)` | Address region | ☐ | |
| `ST_STREET` | `string(60)` | Street | ☐ | |
| `STAT_DESC` | `string(30)` | Sales order status | ☐ | |
| `SUB_TOT` | `int64` | Total excl. VAT and payment discount | ☐ | |
| `SUB_TOT_EU` | `int64` | Total excl. VAT and payment discount in euros | ☐ | |
| `SUBT_M_DIS` | `int64` | Subtotal order (excl. payment discount) | ☐ | |
| `SUBT_P_DIS` | `int64` | Subtotal order (incl. payment discount) | ☐ | |
| `SUBT_P_VAT` | `int64` | Subtotal order (incl. VAT) | ☐ | |
| `TO_EMAIL` | `string(4)` | To | ☐ | |
| `TO_PAY` | `int64` | Still to be paid | ☐ | |
| `TOT_ADM` | `int64` | Order total in administration currency | ☐ | |
| `TOT_EUR` | `int64` | Order total in euros | ☐ | |
| `TOT_HOME` | `int64` | Order total in country currency | ☐ | |
| `TRN_BOOK` | `boolean` | Process as accrual | ☐ | |
| `TRN_CNT` | `int32` | Number of periods accrual processing | ☐ | |
| `TRN_START` | `int32` | Start period accrual processing | ☐ | |
| `VAT_ORD` | `int64` | VAT amount order costs | ☐ | |
| `VAT_SHIP` | `int64` | VAT amount transport costs | ☐ | |
| `VAT_TOT` | `int64` | VAT total | ☐ | |
| `VAT_TOT_DI` | `int64` | VAT amount order | ☐ | |
| `VAT_TOT_EU` | `int64` | VAT total in euros | ☐ | |
| `VC_ORD` | `string(2)` | VAT code order costs | ☐ | |
| `VC_SHIP` | `string(2)` | VAT code transport costs | ☐ | |
| `WAGE_SH` | `int64` | Wage share | ☐ | |
| `WHS_CODE` | `string(5)` | Warehouse | ☐ | |