Table

PurchLineForeignTradeCategoryHistory

Order line foreign trade category history

Keeps earlier versions of foreign trade category data for purchase order lines. Each version has a validity period. It holds the commodity, origin and unit weight, and can refer to an NGP code used for France.

Table name
PurchLineForeignTradeCategoryHistory
Module
Procurement and sourcing
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
LogisticsBasic
Primary index
None
Replacement key
PurchLineForeignTradeCategoryIdx
Key fields
PurchLineForeignTradeCategory, ValidTo, ValidFrom
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchLineForeignTradeCategorySystem record ID of the foreign trade category record that this history belongs to.Int64
RefRecId
YesPurchLineForeignTradeCategory.RecIdNone
ValidToDate and time until which this version applied.UtcDateTime
ValidToDateTime
YesNone
ValidFromDate and time from which this version applied.UtcDateTime
ValidFromDateTime
YesNone
ItemCodeIdCommodity code of the item, from an older Intrastat field.String
DEL_IntrastatItemCodeId
NoNone
NGPCodesTable_FRSystem record ID of the NGP code, used for France.Int64
RefRecId
NoNGPCodesTable_FR.RecIdNone
OrigCountryRegionIdCountry or region of origin of the item.String
ItemOrigCountryRegionId
NoNone
OrigStateIdState or province of origin of the item.String
ItemOrigStateId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurchLineDataAreaIdCompany of the purchase order line.String
DataAreaId
YesPurchLine.dataAreaIdNone
PurchLineInventTransIdLot ID of the purchase order line.String (20)
TradeInventTransId
YesPurchLine.InventTransIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
UnitWeightWeight of one unit of the item.Real
Weight
NoNone

Indexes (3)

Relations (3)

Each relation joins PurchLineForeignTradeCategoryHistory to another table on the fields shown.

  • NGPCodesTable_FR → NGPCodesTable_FR

    Join on NGPCodesTable_FR = NGPCodesTable_FR.RecId

    Many PurchLineForeignTradeCategoryHistory records → zero or one NGPCodesTable_FR record

  • PurchLine → PurchLine

    Join on PurchLineInventTransId = PurchLine.InventTransId, PurchLineDataAreaId = PurchLine.dataAreaId

    Many PurchLineForeignTradeCategoryHistory records → exactly one PurchLine record

  • PurchLineForeignTradeCategory → PurchLineForeignTradeCategory

    Join on PurchLineForeignTradeCategory = PurchLineForeignTradeCategory.RecId

    Many PurchLineForeignTradeCategoryHistory records → exactly one PurchLineForeignTradeCategory record

Get this data out

No public entity reads from PurchLineForeignTradeCategoryHistory. Its data is only reachable through the application, a custom entity or a database export.

Need help with PurchLineForeignTradeCategoryHistory in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk