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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchLineForeignTradeCategorySystem record ID of the foreign trade category record that this history belongs to. | Int64RefRecId | Yes | PurchLineForeignTradeCategory.RecId | None |
ValidToDate and time until which this version applied. | UtcDateTimeValidToDateTime | Yes | None | |
ValidFromDate and time from which this version applied. | UtcDateTimeValidFromDateTime | Yes | None | |
ItemCodeIdCommodity code of the item, from an older Intrastat field. | StringDEL_IntrastatItemCodeId | No | None | |
NGPCodesTable_FRSystem record ID of the NGP code, used for France. | Int64RefRecId | No | NGPCodesTable_FR.RecId | None |
OrigCountryRegionIdCountry or region of origin of the item. | StringItemOrigCountryRegionId | No | None | |
OrigStateIdState or province of origin of the item. | StringItemOrigStateId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PurchLineDataAreaIdCompany of the purchase order line. | StringDataAreaId | Yes | PurchLine.dataAreaId | None |
PurchLineInventTransIdLot ID of the purchase order line. | String (20)TradeInventTransId | Yes | PurchLine.InventTransId | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
UnitWeightWeight of one unit of the item. | RealWeight | No | None |
Indexes (3)
PurchLineIdxPurchLineInventTransId,PurchLineDataAreaId,ValidTo,ValidFromUnique, alternate key.
PurchLineForeignTradeCategoryIdxReplacement keyPurchLineForeignTradeCategory,ValidTo,ValidFromUnique, alternate key.
NGPCodesTable_FRIdxNot unique.
Relations (3)
Each relation joins PurchLineForeignTradeCategoryHistory to another table on the fields shown.
NGPCodesTable_FR→NGPCodesTable_FRJoin on
NGPCodesTable_FR = NGPCodesTable_FR.RecIdMany PurchLineForeignTradeCategoryHistory records → zero or one NGPCodesTable_FR record
PurchLine→PurchLineJoin on
PurchLineInventTransId = PurchLine.InventTransId,PurchLineDataAreaId = PurchLine.dataAreaIdMany PurchLineForeignTradeCategoryHistory records → exactly one PurchLine record
PurchLineForeignTradeCategory→PurchLineForeignTradeCategoryJoin on
PurchLineForeignTradeCategory = PurchLineForeignTradeCategory.RecIdMany 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.