Table

PlSADPurchLine

Purchase lines for SAD

Links purchase order lines to SAD documents. The key is the purchase line reference plus the SAD invoice line number. Each record also names the purchase order, the SAD document code, the position and a quantity.

Table name
PlSADPurchLine
Module
Accounts receivable
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
PurchLineRefIdIdx
Replacement key
None
Key fields
PurchLineRefId, SADInvoiceLineNo
Model
Foundation

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchLineRefIdSystem record ID of the purchase order line.Int64
RefRecId
NoPurchLine.RecIdNone
SADInvoiceLineNoLine number of the invoice in the SAD document.Integer
PlSADInvoiceLineNo
NoPlSADInvoice.SADInvoiceLineNoNone
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
PurchIdPurchase order number, pointing to a purchase order record.String (20)
PurchId
NoPurchTable.PurchIdNone
QtyQuantity in inventory units.Real
InventQty
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
SADLineNoPosition number of the line in the SAD document.Integer
PlSADLineNo
NoPlSADTrans.SADLineNoNone
SADNumberCodeCode that identifies the SAD document.String (50)
PlSADNumberCode
NoPlSADTable.SADNumberCodeNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (6)

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

  • PlSADInvoice → PlSADInvoice

    Join on SADNumberCode = PlSADInvoice.SADNumberCode, SADInvoiceLineNo = PlSADInvoice.SADInvoiceLineNo

    Many PlSADPurchLine records → exactly one PlSADInvoice record

  • PlSADPurchTable → PlSADPurchTable

    Join on SADNumberCode = PlSADPurchTable.SADNumberCode, PurchId = PlSADPurchTable.PurchId

    Many PlSADPurchLine records → exactly one PlSADPurchTable record

  • PlSADTable → PlSADTable

    Join on SADNumberCode = PlSADTable.SADNumberCode

    Many PlSADPurchLine records → exactly one PlSADTable record

  • PlSADTrans → PlSADTrans

    Join on SADNumberCode = PlSADTrans.SADNumberCode, SADLineNo = PlSADTrans.SADLineNo

    Many PlSADPurchLine records → exactly one PlSADTrans record

  • PurchLine → PurchLine

    Join on PurchLineRefId = PurchLine.RecId

    Zero or one PlSADPurchLine record → exactly one PurchLine record

  • PurchTable → PurchTable

    Join on PurchId = PurchTable.PurchId

    Many PlSADPurchLine records → exactly one PurchTable record

Get this data out

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

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

Email sales@drdynamics.co.uk