Table
IntrastatArchiveDetail
Intrastat archive detail
Holds the detail lines of an archived Intrastat declaration. Each line is identified by the archive reference and a line number. It gives the account, item, commodity, invoice, packing slip, weight and amount.
- Table name
IntrastatArchiveDetail- Module
Intrastat- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
ForeignTrade- Primary index
RecId- Replacement key
ArchIdx- Key fields
IntrastatArchiveGeneral, LineNumber- Model
Foundation
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
IntrastatArchiveGeneralPoints to the Intrastat archive record this line belongs to. | Int64RefRecId | Yes | IntrastatArchiveGeneral.RecId | None |
LineNumberSequence number of the line in the archive. | IntegerNumberOf | Yes | None | |
AccountNumCustomer or vendor account number for the line. | String (20)CustVendAC | No | None | |
AmountMSTIntrastat amount for the line, in the accounting currency. | RealIntrastatAmount | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DebCredTypeShows whether the line comes from inventory, a customer or a vendor. | EnumModuleInventCustVend (enum) | No | None | |
IntrastatCommodityPoints to the commodity category (EcoResCategory) for the line. | Int64IntrastatCommodityId | No | EcoResCategory.RecId | None |
InvoiceIdInvoice number for the line. | String (50)InvoiceId | No | None | |
ItemCodeIdCommodity code, held as text. The type name suggests it is an older, deleted field.low confidence | StringDEL_IntrastatItemCodeId | No | None | |
ItemIdNumber of the item on the line. | String (20)ItemId | No | InventTable.ItemId | None |
PackingSlipIdPacking slip or product receipt number for the line. | String (20)PackingSlipId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WeightWeight reported for the line. | RealWeight | No | None |
Indexes (1)
ArchIdxReplacement keyIntrastatArchiveGeneral,LineNumberUnique, alternate key.
Relations (3)
Each relation joins IntrastatArchiveDetail to another table on the fields shown.
IntrastatArchiveGeneral→IntrastatArchiveGeneralJoin on
IntrastatArchiveGeneral = IntrastatArchiveGeneral.RecIdMany IntrastatArchiveDetail records → exactly one IntrastatArchiveGeneral record
IntrastatCommodity→EcoResCategoryJoin on
IntrastatCommodity = EcoResCategory.RecIdMany IntrastatArchiveDetail records → zero or one EcoResCategory record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany IntrastatArchiveDetail records → zero or one InventTable record
Get this data out
No public entity reads from IntrastatArchiveDetail. Its data is only reachable through the application, a custom entity or a database export.
Need help with IntrastatArchiveDetail in a report, an integration or a migration? Talk to Dr Dynamics.