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 descriptionType / EDT / enumMandatoryReferencesIn public entities
SADNumberCodeCode of the SAD document that the line belongs to. Points to a SAD document record.String (50)
PlSADNumberCode
YesPlSADTable.SADNumberCodePlSADDocumentInvoicePurchaseOrderEntity
SADInvoiceLineNoPosition number of the line.Integer
PlSADInvoiceLineNo
YesPlSADDocumentInvoicePurchaseOrderEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension set for the line. Points to a dimension set record.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdPlSADDocumentInvoicePurchaseOrderEntity
DocumentDateDate of the document.Date
DocumentDate
NoPlSADDocumentInvoicePurchaseOrderEntity
InvoiceIdInvoice identifier.String (50)
InvoiceId
NoPlSADDocumentInvoicePurchaseOrderEntity
InvoiceInsuranceInsurance amount on the invoice. Currency not stated in the metadata.Real
PlSADMiscCharg
NoPlSADDocumentInvoicePurchaseOrderEntity
InvoiceMiscChargMiscellaneous payments amount on the invoice. Currency not stated in the metadata.Real
PlSADMiscCharg
NoPlSADDocumentInvoicePurchaseOrderEntity
InvoiceTransportTransport amount on the invoice. Currency not stated in the metadata.Real
PlSADMiscCharg
NoPlSADDocumentInvoicePurchaseOrderEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PurchIdPurchase order linked to the invoice line. Matched together with the vendor account.String (20)
Num
YesPurchTable.PurchIdPlSADDocumentInvoicePurchaseOrderEntity
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
SADDutyVendVendor account for the line. Points to a vendor record.String (20)
VendAccount
NoVendTable.AccountNumPlSADDocumentInvoicePurchaseOrderEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (4)

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

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many PlSADInvoice records → exactly one DimensionAttributeValueSet record

  • PlSADTable → PlSADTable

    Join on SADNumberCode = PlSADTable.SADNumberCode

    Many PlSADInvoice records → exactly one PlSADTable record

  • PurchTable → PurchTable

    Join on PurchId = PurchTable.PurchId, SADDutyVend = PurchTable.OrderAccount

    Many PlSADInvoice records → exactly one PurchTable record

  • VendTable → VendTable

    Join on SADDutyVend = VendTable.AccountNum

    Many 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.

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

Email sales@drdynamics.co.uk