Table
CustInvoiceSalesLink
Customer invoice - sales order relation table
Relation table that connects customer invoices to the sales orders they cover. The key combines the original sales order, invoice date, invoice ID, Brazilian fiscal establishment and sales order. It also keeps customer, name and address details for the invoice and delivery.
- Table name
CustInvoiceSalesLink- Module
Accounts receivable- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
RecId- Replacement key
origSalesIdx- Key fields
origSalesId, invoiceDate, invoiceId, FiscalEstablishment_BR, salesId- Model
Foundation
Fields (20)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
origSalesIdOriginal sales order the invoice came from. | String (20)SalesIdOrig | No | SalesTable.SalesId | None |
invoiceDateDate of the customer invoice. | DateTransDate | Yes | None | |
invoiceIdIdentifier of the customer invoice. | String (50)InvoiceId | Yes | None | |
FiscalEstablishment_BRFiscal establishment record used for Brazil. | Int64FiscalEstablishmentRecId_BR | No | FiscalEstablishment_BR.RecId | None |
salesIdSales order linked to the invoice. | String (20)SalesIdBase | Yes | SalesTable.SalesId | None |
CustomerRefCustomer's own reference text. | String (60)CustRef | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
deliveryNameName of the party receiving the delivery. | String (160)CustName | No | None | |
DeliveryPostalAddressDelivery address, pointing to an address record. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
invoiceAccountCustomer account that is invoiced. | String (20)CustInvoiceAccount | No | CustTable.AccountNum | None |
InvoicePostalAddressInvoice address, pointing to an address record. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
invoicingNameName of the invoiced party. | String (160)CustName | No | None | |
orderAccountCustomer account that placed the order. | String (20)CustAccount | No | CustTable.AccountNum | None |
parmIdIdentifier of the parameter set, as a text value.low confidence | String (20)ParmId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PurchaseOrderCustomer's purchase order or requisition number. | String (20)CustPurchaseOrder | 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 | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (6)
origSalesIdxReplacement keyorigSalesId,invoiceDate,invoiceId,FiscalEstablishment_BR,salesIdUnique, alternate key.
parmIdxNot unique.
invoiceIdxNot unique.
salesIdxNot unique.
DeliveryPostalAddressIdxNot unique.
InvoicePostalAddressIdxNot unique.
Relations (8)
Each relation joins CustInvoiceSalesLink to another table on the fields shown.
CustInvoiceJour→CustInvoiceJourJoin on
salesId = CustInvoiceJour.SalesId,invoiceId = CustInvoiceJour.InvoiceId,invoiceDate = CustInvoiceJour.InvoiceDateMany CustInvoiceSalesLink records → exactly one CustInvoiceJour record
CustTable→CustTableJoin on
invoiceAccount = CustTable.AccountNumMany CustInvoiceSalesLink records → zero or one CustTable record
CustTable_orderAccount→CustTableJoin on
orderAccount = CustTable.AccountNumMany CustInvoiceSalesLink records → zero or one CustTable record
DeliveryPostalAddress_FK→LogisticsPostalAddressJoin on
DeliveryPostalAddress = LogisticsPostalAddress.RecIdMany CustInvoiceSalesLink records → zero or one LogisticsPostalAddress record
FiscalEstablishment_BR→FiscalEstablishment_BRJoin on
FiscalEstablishment_BR = FiscalEstablishment_BR.RecIdMany CustInvoiceSalesLink records → zero or one FiscalEstablishment_BR record
InvoicePostalAddress_FK→LogisticsPostalAddressJoin on
InvoicePostalAddress = LogisticsPostalAddress.RecIdMany CustInvoiceSalesLink records → zero or one LogisticsPostalAddress record
salesTable→SalesTableJoin on
origSalesId = SalesTable.SalesIdMany CustInvoiceSalesLink records → zero or one SalesTable record
SalesTable_salesId→SalesTableJoin on
salesId = SalesTable.SalesIdMany CustInvoiceSalesLink records → exactly one SalesTable record
Get this data out
No public entity reads from CustInvoiceSalesLink. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustInvoiceSalesLink in a report, an integration or a migration? Talk to Dr Dynamics.