# QTH_HDR: Quotation history
- Name: `QTH_HDR`
- Catalog: `AccountView`
- Label: Quotation history
- Partition-specific: true
- Select: true
- Insert: false
- Update: false
- Delete: false
## Table Columns
The columns of the table `QTH_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 | ☐ | |
| `ART_DATE_W` | `string(40)` | Invoice order date written out | ☐ | |
| `AVG_VAT` | `int64` | Average VAT percentage invoice | ☐ | |
| `CITY` | `string(35)` | City | ☐ | |
| `CNG_DATE` | `datetime` | Date last modified | ☐ | |
| `CNG_NR` | `int32` | Change number | ☐ | |
| `COMMENT2` | `string(4)` | External note | ☐ | |
| `COMMENT3` | `string(4)` | Internal note | ☐ | |
| `COST_CODE` | `string(10)` | Cost centre code | ☐ | |
| `COUNTRY` | `string(30)` | Country | ☐ | |
| `CRED_LIM_P` | `decimal` | Credit limitation percentage invoice | ☐ | |
| `CUR_CODE` | `string(3)` | Currency code | ☐ | |
| `CUR_UNIT` | `int64` | Currency unit invoice | ☐ | |
| `DATE_NOT` | `boolean` | Send email to salesperson when delivery date changes | ☐ | |
| `DATE_SENT` | `datetime` | Dispatch date | ☐ | |
| `DEL_ADDR` | `string(4)` | Shipping address | ☐ | |
| `DEL_CP` | `string(40)` | Shipping company contact | ☐ | |
| `DEL_DATE` | `datetime` | Delivery date | ☐ | |
| `DEL_NOT` | `boolean` | Send email when sales order can be delivered | ☐ | |
| `DEL_PP` | `string(10)` | Shipping company contact | ☐ | |
| `DEL_WEEK` | `int32` | Delivery date (week) | ☐ | |
| `DISC_CODE` | `string(2)` | Payment term code | ☐ | |
| `DISC_DESC` | `string(40)` | Payment term description | ☐ | |
| `DOC_NAME` | `string(240)` | Document name | ☐ | |
| `EMP_NR` | `string(10)` | Employee | ☐ | |
| `EXCH_RATE` | `decimal` | Exchange rate | ☐ | |
| `EXCHA_RATE` | `decimal` | Exchange rate | ☐ | |
| `GROSS_FLG` | `boolean` | Show base amount incl. VAT | ☐ | |
| `HIST_DATE` | `datetime` | History date | ☐ | |
| `HIST_WEEK` | `int32` | History date (week) | ☐ | |
| `INP_DATE` | `datetime` | Entry date | ☐ | |
| `INV_CP` | `string(40)` | Quotation company contact | ☐ | |
| `INV_PP` | `string(10)` | Quotation company contact | ☐ | |
| `OPP_CODE` | `string(10)` | Opportunity code | ☐ | |
| `OPT_TOT` | `int64` | Total optional | ☐ | |
| `ORD_COST` | `int64` | Order costs | ☐ | |
| `ORD_DATE` | `datetime` | Quotation date | ☐ | |
| `ORD_NR` | `string(10)` | Quotation number | ☐ | |
| `ORD_OPT` | `int64` | Total including optional | ☐ | |
| `ORD_STAT` | `decimal` | Approval stage | ☐ | |
| `ORD_TOT` | `int64` | Total | ☐ | |
| `ORD_WEEK` | `int32` | Quotation date (week) | ☐ | |
| `partition_code` | `string` | Partition code | ☑ | |
| `partition_name` | `string` | Partition name | ☑ | |
| `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 | ☐ | |
| `POST_CODE` | `string(10)` | Postcode | ☐ | |
| `PROJ_CODE` | `string(10)` | Project code | ☐ | |
| `QT_STAT` | `int32` | Quotation status | ☐ | |
| `QT_TEXT` | `string(4)` | Quotation layout | ☐ | |
| `REC_ID` | `string(10)` | Unique code | ☐ | |
| `REJ_RESN` | `string(10)` | Rejection reason | ☐ | |
| `RPL_DEL` | `string(10)` | Shipping company | ☐ | |
| `RPL_INV` | `string(10)` | Quotation company | ☐ | |
| `SALES_PERS` | `string(40)` | Employee | ☐ | |
| `SEL_CODE` | `string(5)` | Selection code | ☐ | |
| `SHIP_COST` | `int64` | Transport costs | ☐ | |
| `SHIP_DESC` | `string(40)` | Transport method description | ☐ | |
| `SHIP_MTH` | `string(10)` | Transport method | ☐ | |
| `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 | ☐ | |
| `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 invoice (excl. payment discount) | ☐ | |
| `SUBT_P_DIS` | `int64` | Subtotal invoice (incl. payment discount) | ☐ | |
| `SUBT_P_VAT` | `int64` | Subtotal invoice (incl. VAT) | ☐ | |
| `TOT_ADM` | `int64` | Invoice total in administration currency | ☐ | |
| `TOT_EUR` | `int64` | Invoice total in euros | ☐ | |
| `TOT_HOME` | `int64` | Invoice total in country currency | ☐ | |
| `TXT_FOOT` | `string(4)` | Footer | ☐ | |
| `TXT_HDR` | `string(4)` | Header | ☐ | |
| `VAT_OPT` | `int64` | VAT total optional | ☐ | |
| `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 invoice | ☐ | |
| `VAT_TOT_EU` | `int64` | VAT total in euros | ☐ | |
| `VAT_TOT_OP` | `int64` | VAT total including optional | ☐ | |
| `VC_ORD` | `string(2)` | VAT code order costs | ☐ | |
| `VC_SHIP` | `string(2)` | VAT code transport costs | ☐ | |
| `VER_NR` | `int32` | Quotation version | ☐ | |
| `WEEK_SENT` | `int32` | Shipping date (week) | ☐ | |