Table

CustQuotationSalesLink

Sales quotation - sales order relation table

Links a quotation in the quotation journal to the sales order that relates to it. It stores the quotation and order IDs, the customer and invoice accounts, and the delivery name and address. The key is the original sales order ID, the date and the quotation ID.

Table name
CustQuotationSalesLink
Module
Sales and marketing
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
QuotationBasic
Primary index
RecId
Replacement key
origSalesIdx
Key fields
origSalesId, quotationDate, quotationId
Model
Foundation

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
origSalesIdThe original sales order linked to the quotation.String (20)
SalesIdOrig
NoSalesTable.SalesIdNone
quotationDateDate of the quotation journal record.Date
TransDate
YesNone
quotationIdID of the sales quotation.String (20)
QuotationIdBase
YesSalesQuotationTable.QuotationIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
deliveryNameName of the delivery recipient.String (160)
CustName
NoNone
DeliveryPostalAddressDelivery address, pointing to a postal address record.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
invoiceAccountCustomer account that receives the invoice.String (20)
CustInvoiceAccount
NoCustTable.AccountNumNone
orderAccountCustomer account that placed the order.String (20)
CustAccount
NoCustTable.AccountNumNone
origQuotationIdThe original sales quotation.String (20)
QuotationIdBase
NoSalesQuotationTable.QuotationIdNone
parmIdIdentifier of a parameter set used when the record was processed.low confidenceString (20)
ParmId
NoNone
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
salesIdThe sales order linked to the quotation.String (20)
SalesIdBase
NoSalesTable.SalesIdNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (4)

Relations (8)

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

  • custQuotationJour → CustQuotationJour

    Join on salesId = CustQuotationJour.SalesId, quotationId = CustQuotationJour.QuotationId, quotationDate = CustQuotationJour.QuotationDate

    Many CustQuotationSalesLink records → exactly one CustQuotationJour record

  • DeliveryPostalAddress_FK → LogisticsPostalAddress

    Join on DeliveryPostalAddress = LogisticsPostalAddress.RecId

    Many CustQuotationSalesLink records → zero or one LogisticsPostalAddress record

  • InvoiceCustomer → CustTable

    Join on invoiceAccount = CustTable.AccountNum

    Many CustQuotationSalesLink records → zero or one CustTable record

  • OrderCustomer → CustTable

    Join on orderAccount = CustTable.AccountNum

    Many CustQuotationSalesLink records → zero or one CustTable record

  • OriginSalesQuotationTable → SalesQuotationTable

    Join on origQuotationId = SalesQuotationTable.QuotationId

    Many CustQuotationSalesLink records → zero or one SalesQuotationTable record

  • OriginSalesTable → SalesTable

    Join on origSalesId = SalesTable.SalesId

    Many CustQuotationSalesLink records → zero or one SalesTable record

  • RenameSalesQuotationTable → SalesQuotationTable

    Join on quotationId = SalesQuotationTable.QuotationId

    Cardinality not set in the metadata.

  • RenameSalesTable → SalesTable

    Join on salesId = SalesTable.SalesId

    Cardinality not set in the metadata.

Get this data out

No public entity reads from CustQuotationSalesLink. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk