Table

PurchLineOrigin

Links a purchase order line to the source document line it came from. It is keyed by the line's lot ID and company. It has no label in the metadata.

Table name
PurchLineOrigin
Module
Procurement and sourcing
Table group
WorksheetLine
Table type
Regular
Data per company
No
Configuration key
LogisticsBasic
Primary index
None
Replacement key
FK_PurchLine_PurchLineOrigin
Key fields
PurchLineInventTransId, PurchLineDataAreaId
Model
Foundation

Fields (8)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchLineInventTransIdLot ID of the purchase order line.String (20)
TradeInventTransId
YesPurchLine.InventTransIdNone
PurchLineDataAreaIdCompany of the purchase order line.String
DataAreaId
YesPurchLine.dataAreaIdNone
OriginSourceDocumentLineSystem record ID of the source document line that the purchase line originates from.Int64
SourceDocumentLineRecId
NoSourceDocumentLine.RecIdNone
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 PurchLineOrigin to another table on the fields shown.

  • PurchLine → PurchLine

    Join on PurchLineInventTransId = PurchLine.InventTransId, PurchLineDataAreaId = PurchLine.dataAreaId

    Zero or one PurchLineOrigin record → exactly one PurchLine record

  • SourceDocumentLine → SourceDocumentLine

    Join on OriginSourceDocumentLine = SourceDocumentLine.RecId

    Many PurchLineOrigin records → zero or one SourceDocumentLine record

Get this data out

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

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

Email sales@drdynamics.co.uk