Table

SalesQuotationPriceSimTable

Price simulations

Holds price simulations for quotation lines. Each row gives new price, discount, amount and margin values for a line. It is keyed by quotation, line number and record ID. It links to Sales quotation, Quotation lines and Items.

Table name
SalesQuotationPriceSimTable
Module
Sales and marketing
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
SmmCRM
Primary index
QuotationIdLineNumIdx
Replacement key
None
Key fields
QuotationId, LineNum, RecId
Model
Foundation

Fields (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
QuotationIdQuotation number, pointing to Sales quotation.String (20)
QuotationId
YesSalesQuotationTable.QuotationIdNone
LineNumLine number of the quotation line.Real
LineNum
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
ContributionRatioNew contribution ratio from the simulation.Real
SalesContributionRatio
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ItemIdItem number, pointing to the Items table.String (20)
ItemId
NoInventTable.ItemIdNone
MarginNew margin from the simulation.Real
SalesContributionMargin
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NameDescription of the line.String (60)
Description
NoNone
NewAmountNew amount from the simulation.Real
AmountCur
NoNone
NewDiscountAmountNew discount amount from the simulation.Real
AmountCur
NoNone
NewDiscountPercentageNew discount percentage from the simulation.Real
Percent
NoNone
NewSalesPricePerUnitNew sales price per unit from the simulation.Real
SalesPrice
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SimResultResult of the margin calculation: cash discount amount, discount percentage or line amount.Enum
SalesQuotationPriceSimResult (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

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

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many SalesQuotationPriceSimTable records → zero or one InventTable record

  • SalesQuotationLine → SalesQuotationLine

    Join on QuotationId = SalesQuotationLine.QuotationId, LineNum = SalesQuotationLine.LineNum

    Many SalesQuotationPriceSimTable records → zero or one SalesQuotationLine record

  • SalesQuotationTable → SalesQuotationTable

    Join on QuotationId = SalesQuotationTable.QuotationId

    Many SalesQuotationPriceSimTable records → exactly one SalesQuotationTable record

Get this data out

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

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

Email sales@drdynamics.co.uk