Table

InterCompanyPurchSalesReference

Sales/purchase references

Links a purchase order to a sales order. Each row pairs one purchase order number with one sales order number. The key is the sales order plus the purchase order.

Table name
InterCompanyPurchSalesReference
Module
Procurement and sourcing
Table group
Worksheet
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
SalesPurchIdx
Replacement key
None
Key fields
SalesId, PurchId
Model
Foundation

Fields (8)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesIdNumber of the sales order in the pair. It points to a sales order record.String (20)
SalesId
YesSalesTable.SalesIdNone
PurchIdNumber of the purchase order in the pair. It points to a purchase order record.String (20)
PurchId
YesPurchTable.PurchIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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

Indexes (2)

Relations (2)

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

  • PurchTable → PurchTable

    Join on PurchId = PurchTable.PurchId

    Many InterCompanyPurchSalesReference records → exactly one PurchTable record

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

    Many InterCompanyPurchSalesReference records → exactly one SalesTable record

Get this data out

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

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

Email sales@drdynamics.co.uk