Table

VendInvoiceIntrastat

Intrastat information of vendor invoices

Holds Intrastat reporting details for a vendor invoice. Each row links to a vendor invoice journal record and carries values such as commodity, transaction code, statistics procedure, transport method, port and country of origin. It also relates to the voucher and date of journal lines.

Table name
VendInvoiceIntrastat
Module
Accounts payable
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
ForeignTrade
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (21)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CountyOrigDestCounty of origin or destination, linked to the county record together with state and country/region.String (30)
AddressCountyOrigDest
NoLogisticsAddressCounty.CountyIdVendInvoiceIntrastatCDREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoVendInvoiceIntrastatCDREntity
IntracodeCommodity code as text. The EDT name suggests it is an older field.low confidenceString
DEL_IntrastatItemCodeId
NoVendInvoiceIntrastatCDREntity
IntrastatCommodityCommodity, linked to a product category record.Int64
IntrastatCommodityId
NoEcoResCategory.RecIdVendInvoiceIntrastatCDREntity
IntraUnitQuantity in additional units for Intrastat.Real
IntrastatConvert
NoVendInvoiceIntrastatCDREntity
NGPCodesTable_FRPoints to the NGP code record, used for France.Int64
NGPCodesTableFRId
NoNGPCodesTable_FR.RecIdVendInvoiceIntrastatCDREntity
OrigCountryRegionIdCountry or region of origin.String
ItemOrigCountryRegionId
NoLogisticsAddressCountryRegion.CountryRegionIdVendInvoiceIntrastatCDREntity
OrigStateIdState or province of origin, linked to the state or county record.String
ItemOrigStateId
NoLogisticsAddressCounty.StateIdLogisticsAddressState.StateIdVendInvoiceIntrastatCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PortPort used for the Intrastat entry.String
IntrastatPortId
NoIntrastatPort.PortIdVendInvoiceIntrastatCDREntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoVendInvoiceIntrastatCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
StatisticsFactorPercentage of charges used for the Intrastat statistics value.Real
IntrastatMarkupPct
NoVendInvoiceIntrastatCDREntity
StatProcIdStatistics procedure code.String
IntrastatProcId
NoVendInvoiceIntrastatCDREntity
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
TransactionCodeIntrastat transaction code.String
IntrastatTransactionCodeId
NoIntrastatTransactionCode.TransactionCodeVendInvoiceIntrastatCDREntity
TransDateTransaction date, which relates to the journal lines.Date
TransDate
YesVendInvoiceIntrastatCDREntity
TransportTransport method, linked to the transport mode setup.String
IntrastatTransport
NoIntrastatTransportMode.TransPortCodeVendInvoiceIntrastatCDREntity
VendInvoiceJourPoints to the vendor invoice journal record.Int64
RefRecId
NoVendInvoiceJour.RecIdVendInvoiceIntrastatCDREntity
VoucherVoucher number, which relates to journal lines.String (20)
Voucher
YesVendInvoiceIntrastatCDREntity

Indexes (2)

Relations (12)

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

  • AddressCounty_FK → LogisticsAddressCounty

    Join on CountyOrigDest = LogisticsAddressCounty.CountyId, OrigStateId = LogisticsAddressCounty.StateId, OrigCountryRegionId = LogisticsAddressCounty.CountryRegionId

    Many VendInvoiceIntrastat records → zero or one LogisticsAddressCounty record

  • AddressState_FK → LogisticsAddressState

    Join on OrigCountryRegionId = LogisticsAddressState.CountryRegionId, OrigStateId = LogisticsAddressState.StateId

    Many VendInvoiceIntrastat records → zero or one LogisticsAddressState record

  • IntrastatCommodity → EcoResCategory

    Join on IntrastatCommodity = EcoResCategory.RecId

    Many VendInvoiceIntrastat records → zero or one EcoResCategory record

  • IntrastatPort → IntrastatPort

    Join on Port = IntrastatPort.PortId

    Many VendInvoiceIntrastat records → zero or one IntrastatPort record

  • IntrastatStatProc → IntrastatStatProc

    Join on StatProcId = IntrastatStatProc.StatProcId

    Many VendInvoiceIntrastat records → zero or one IntrastatStatProc record

  • IntrastatTransactionCode → IntrastatTransactionCode

    Join on TransactionCode = IntrastatTransactionCode.TransactionCode

    Many VendInvoiceIntrastat records → zero or one IntrastatTransactionCode record

  • IntrastatTransportMode → IntrastatTransportMode

    Join on Transport = IntrastatTransportMode.TransPortCode

    Many VendInvoiceIntrastat records → zero or one IntrastatTransportMode record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on TransDate = LedgerJournalTrans.TransDate, Voucher = LedgerJournalTrans.Voucher

    Cardinality not set in the metadata.

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on OrigCountryRegionId = LogisticsAddressCountryRegion.CountryRegionId

    Many VendInvoiceIntrastat records → zero or one LogisticsAddressCountryRegion record

  • NGPCodesTable_FR → NGPCodesTable_FR

    Join on NGPCodesTable_FR = NGPCodesTable_FR.RecId

    Many VendInvoiceIntrastat records → zero or one NGPCodesTable_FR record

  • VendinvoiceJour_FK → VendInvoiceJour

    Join on VendInvoiceJour = VendInvoiceJour.RecId

    Many VendInvoiceIntrastat records → zero or one VendInvoiceJour record

  • VendTrans → VendTrans

    Join on Voucher = VendTrans.Voucher, TransDate = VendTrans.TransDate

    Cardinality not set in the metadata.

Get this data out

Tables are not exposed directly. These public entities read from VendInvoiceIntrastat; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk