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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchLineRefIdSystem record ID of the purchase order line. | Int64RefRecId | No | PurchLine.RecId | None |
SADInvoiceLineNoLine number of the invoice in the SAD document. | IntegerPlSADInvoiceLineNo | No | PlSADInvoice.SADInvoiceLineNo | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PurchIdPurchase order number, pointing to a purchase order record. | String (20)PurchId | No | PurchTable.PurchId | None |
QtyQuantity in inventory units. | RealInventQty | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
SADLineNoPosition number of the line in the SAD document. | IntegerPlSADLineNo | No | PlSADTrans.SADLineNo | None |
SADNumberCodeCode that identifies the SAD document. | String (50)PlSADNumberCode | No | PlSADTable.SADNumberCode | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
SADNumberCodeIdxNot unique.
PurchLineRefIdIdxPrimary indexPurchLineRefId,SADInvoiceLineNoUnique, alternate key.
Relations (6)
Each relation joins PlSADPurchLine to another table on the fields shown.
PlSADInvoice→PlSADInvoiceJoin on
SADNumberCode = PlSADInvoice.SADNumberCode,SADInvoiceLineNo = PlSADInvoice.SADInvoiceLineNoMany PlSADPurchLine records → exactly one PlSADInvoice record
PlSADPurchTable→PlSADPurchTableJoin on
SADNumberCode = PlSADPurchTable.SADNumberCode,PurchId = PlSADPurchTable.PurchIdMany PlSADPurchLine records → exactly one PlSADPurchTable record
PlSADTable→PlSADTableJoin on
SADNumberCode = PlSADTable.SADNumberCodeMany PlSADPurchLine records → exactly one PlSADTable record
PlSADTrans→PlSADTransJoin on
SADNumberCode = PlSADTrans.SADNumberCode,SADLineNo = PlSADTrans.SADLineNoMany PlSADPurchLine records → exactly one PlSADTrans record
PurchLine→PurchLineJoin on
PurchLineRefId = PurchLine.RecIdZero or one PlSADPurchLine record → exactly one PurchLine record
PurchTable→PurchTableJoin on
PurchId = PurchTable.PurchIdMany 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.