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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CustInvoicePoints to the customer free text invoice (CustInvoiceTable) described by this record.Int64
CustInvoiceTableRefRecId
NoCustInvoiceTable.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InvoiceAssociationTypeType of the invoice: Original invoice, Corrected invoice or Canceling invoice.Enum
InvoiceAssociationType (enum)
NoNone
OriginalCustInvoicePoints to the original free text invoice (CustInvoiceTable).Int64
CustInvoiceTableRefRecId
NoCustInvoiceTable.RecIdNone
ParentCustInvoicePoints to the parent invoice, either a free text invoice (CustInvoiceTable) or another related invoice record (CustRelatedInvoice).Int64
CustInvoiceTableRefRecId
NoCustInvoiceTable.RecIdCustRelatedInvoice.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (4)

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

  • CustInvoice → CustInvoiceTable

    Join on CustInvoice = CustInvoiceTable.RecId

    Zero or one CustRelatedInvoice record → zero or one CustInvoiceTable record

  • CustInvoiceTable_OriginalCustInvoice → CustInvoiceTable

    Join on OriginalCustInvoice = CustInvoiceTable.RecId

    Many CustRelatedInvoice records → zero or one CustInvoiceTable record

  • CustInvoiceTable_ParentCustInvoice → CustInvoiceTable

    Join on ParentCustInvoice = CustInvoiceTable.RecId

    Many CustRelatedInvoice records → zero or one CustInvoiceTable record

  • ParentCustInvoice → CustRelatedInvoice

    Join on ParentCustInvoice = CustRelatedInvoice.RecId

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

Email sales@drdynamics.co.uk