Table

WHSSourceDocumentDetails

Source document details

Stores basic details of source documents used in warehouse orders, keyed by order number and source document type. Types include purchase, transfer, sales and production orders and transfer order receipts. It holds the account name and number linked to the order.

Table name
WHSSourceDocumentDetails
Module
Inventory
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
SourceDocumentNumberIdx
Replacement key
None
Key fields
SourceDocumentOrderNumber, SourceType
Model
WarehouseExecutionWorkloadBackoffice

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SourceDocumentOrderNumberOrder number of the source document; can point to a purchase order or a sales order.String (20)
WHSOrderNum
YesPurchTable.PurchIdSalesTable.SalesIdNone
SourceTypeType of source document, such as purchase order, sales order or production order.Enum
WHSWarehouseOrderSourceDocumentType (enum)
YesNone
AccountNameName of the customer or vendor account.String (60)
AccountName
NoNone
AccountNumCustomer or vendor account number.String (20)
CustVendAC
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (2)

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

  • SalesTable → SalesTable

    Join on SourceType = WHSWarehouseOrderSourceDocumentType::SalesOrder, SourceDocumentOrderNumber = SalesTable.SalesId

    Many WHSSourceDocumentDetails records → zero or one SalesTable record

  • PurchTable → PurchTable

    Join on SourceType = WHSWarehouseOrderSourceDocumentType::PurchaseOrder, SourceDocumentOrderNumber = PurchTable.PurchId

    Many WHSSourceDocumentDetails records → zero or one PurchTable record

Get this data out

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

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

Email sales@drdynamics.co.uk