Table
CustRelatedInvoice
Related invoices
Links customer free text invoices to each other. Each record shows an invoice, its type (original, corrected or canceling), the original invoice and a parent invoice. The key is the invoice reference.
- Table name
CustRelatedInvoice- Module
Accounts receivable- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
None- Replacement key
CustInvoiceIdx- Key fields
CustInvoice- Model
Foundation
Fields (9)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CustInvoicePoints to the customer free text invoice (CustInvoiceTable) described by this record. | Int64CustInvoiceTableRefRecId | No | CustInvoiceTable.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InvoiceAssociationTypeType of the invoice: Original invoice, Corrected invoice or Canceling invoice. | EnumInvoiceAssociationType (enum) | No | None | |
OriginalCustInvoicePoints to the original free text invoice (CustInvoiceTable). | Int64CustInvoiceTableRefRecId | No | CustInvoiceTable.RecId | None |
ParentCustInvoicePoints to the parent invoice, either a free text invoice (CustInvoiceTable) or another related invoice record (CustRelatedInvoice). | Int64CustInvoiceTableRefRecId | No | CustInvoiceTable.RecIdCustRelatedInvoice.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
CustInvoiceIdxReplacement keyUnique, alternate key.
ParentInvoiceIdxNot unique.
Relations (4)
Each relation joins CustRelatedInvoice to another table on the fields shown.
CustInvoice→CustInvoiceTableJoin on
CustInvoice = CustInvoiceTable.RecIdZero or one CustRelatedInvoice record → zero or one CustInvoiceTable record
CustInvoiceTable_OriginalCustInvoice→CustInvoiceTableJoin on
OriginalCustInvoice = CustInvoiceTable.RecIdMany CustRelatedInvoice records → zero or one CustInvoiceTable record
CustInvoiceTable_ParentCustInvoice→CustInvoiceTableJoin on
ParentCustInvoice = CustInvoiceTable.RecIdMany CustRelatedInvoice records → zero or one CustInvoiceTable record
ParentCustInvoice→CustRelatedInvoiceJoin on
ParentCustInvoice = CustRelatedInvoice.RecIdMany CustRelatedInvoice records → zero or one CustRelatedInvoice record
Get this data out
No public entity reads from CustRelatedInvoice. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustRelatedInvoice in a report, an integration or a migration? Talk to Dr Dynamics.