Table
PlSADInvoice
Invoices for SAD
Holds invoice lines linked to a SAD document. The key is the SAD document code and the line position. Each line has an invoice ID, a vendor account, an optional purchase order and amounts for insurance, transport and other charges.
- Table name
PlSADInvoice- Module
Accounts receivable- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
InvoiceLineNumIdx- Replacement key
None- Key fields
SADNumberCode, SADInvoiceLineNo- Model
Foundation
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SADNumberCodeCode of the SAD document that the line belongs to. Points to a SAD document record. | String (50)PlSADNumberCode | Yes | PlSADTable.SADNumberCode | PlSADDocumentInvoicePurchaseOrderEntity |
SADInvoiceLineNoPosition number of the line. | IntegerPlSADInvoiceLineNo | Yes | PlSADDocumentInvoicePurchaseOrderEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultDimensionDefault financial dimension set for the line. Points to a dimension set record. | Int64LedgerDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | PlSADDocumentInvoicePurchaseOrderEntity |
DocumentDateDate of the document. | DateDocumentDate | No | PlSADDocumentInvoicePurchaseOrderEntity | |
InvoiceIdInvoice identifier. | String (50)InvoiceId | No | PlSADDocumentInvoicePurchaseOrderEntity | |
InvoiceInsuranceInsurance amount on the invoice. Currency not stated in the metadata. | RealPlSADMiscCharg | No | PlSADDocumentInvoicePurchaseOrderEntity | |
InvoiceMiscChargMiscellaneous payments amount on the invoice. Currency not stated in the metadata. | RealPlSADMiscCharg | No | PlSADDocumentInvoicePurchaseOrderEntity | |
InvoiceTransportTransport amount on the invoice. Currency not stated in the metadata. | RealPlSADMiscCharg | No | PlSADDocumentInvoicePurchaseOrderEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PurchIdPurchase order linked to the invoice line. Matched together with the vendor account. | String (20)Num | Yes | PurchTable.PurchId | PlSADDocumentInvoicePurchaseOrderEntity |
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 | |
SADDutyVendVendor account for the line. Points to a vendor record. | String (20)VendAccount | No | VendTable.AccountNum | PlSADDocumentInvoicePurchaseOrderEntity |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
InvoiceLineNumIdxPrimary indexSADNumberCode,SADInvoiceLineNoUnique, alternate key.
PurchIdIdxNot unique.
InvoiceIdIdxPurchId,InvoiceId,SADNumberCodeUnique.
Relations (4)
Each relation joins PlSADInvoice to another table on the fields shown.
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany PlSADInvoice records → exactly one DimensionAttributeValueSet record
PlSADTable→PlSADTableJoin on
SADNumberCode = PlSADTable.SADNumberCodeMany PlSADInvoice records → exactly one PlSADTable record
PurchTable→PurchTableJoin on
PurchId = PurchTable.PurchId,SADDutyVend = PurchTable.OrderAccountMany PlSADInvoice records → exactly one PurchTable record
VendTable→VendTableJoin on
SADDutyVend = VendTable.AccountNumMany PlSADInvoice records → exactly one VendTable record
Get this data out
Tables are not exposed directly. These public entities read from PlSADInvoice; use one of them in Power BI, Power Platform or a data management project.
PlSADDocumentInvoicePurchaseOrderEntity· 10 fields from this table
Need help with PlSADInvoice in a report, an integration or a migration? Talk to Dr Dynamics.