Table
RetailSalesQuotationTable
Sales quotation
Holds extra retail details for a sales quotation, such as the channel, store, register, loyalty card and discount data. Each record points to one sales quotation through a reference to SalesQuotationTable. It also links to the internal organisation, retail channel, hour of day and warehouse.
- Table name
RetailSalesQuotationTable- Module
Commerce transactions and orders- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (29)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ChannelReferenceIdReference code the sales channel uses for this quotation. | String (50)RetailOrderChannelReferenceId | No | None | |
CouponsStored list of coupons linked to the quotation. | ContainerRetailCoupons | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DiscountCodesStored list of discount codes linked to the quotation. | ContainerRetailDiscountCodes | No | None | |
InitialReceiptIdReceipt number first created for the order in the point of sale app. | String (18)RetailInitialReceiptId | No | None | |
IsPriceAndDiscountRecalculationRequiredYes/no flag showing whether prices and discounts need to be recalculated. | EnumNoYes (enum) | No | None | |
IsTaxExemptedForPriceInclusiveYes/no flag showing whether tax was exempted where prices include tax. | EnumRetailIsTaxExemptedForPriceInclusiveNoYes (enum) | No | None | |
OMInternalOrganizationPoints to the internal organisation record linked to the quotation. | Int64RefRecId | No | OMInternalOrganization.RecId | None |
OriginalTransactionTimeDate and time of the original transaction, stored in UTC. | UtcDateTimeTransDateTime | No | None | |
OriginChannelReference to the channel where the quotation originated. No related table is given.low confidence | Int64RefRecId | No | 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 | |
RetailChannelPoints to the retail channel the quotation relates to. | Int64RefRecId | No | RetailChannelTable.RecId | None |
RetailHourOfDayPoints to the hour-of-day record for the quotation. | Int64RefRecId | No | RetailHour.RecId | None |
RetailLoyaltyCardPoints to the loyalty card linked to the quotation. | Int64RefRecId | No | RetailLoyaltyCard.RecId | None |
RetailOrderYes/no flag showing whether the record is a retail one. | EnumNoYes (enum) | No | None | |
RetailPrepaymentOverriddenYes/no flag showing whether the prepayment was overridden. | EnumNoYesIdNoYes (enum) | No | None | |
RetailReplenishmentLocationIdCode of the warehouse linked to the quotation. | StringSalesInventLocationId | No | InventLocation.InventLocationId | None |
RetailRetailStatusTypeRetail status of the quotation, for example Document, Sent, Part receipt, Closed or Canceled. | EnumRetailRetailStatusTypeRetailRetailStatusTypeBase (enum) | No | None | |
RetailStoreIdNumber of the store linked to the quotation. | StringRetailStoreId | No | RetailStoreTable.StoreNumber | None |
RetailTerminalIdNumber of the POS register linked to the quotation. | StringRetailTerminalId | No | RetailTerminalTable.terminalId | None |
SalesQuotationTablePoints to the sales quotation this retail data belongs to. | Int64RefRecId | No | SalesQuotationTable.RecId | None |
ShouldUseUnifiedPricingEngineOnSalesOrderYes/no flag for using the unified pricing engine on the order. | EnumNoYes (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxOverrideCodeCode that replaces the normal sales tax handling. | String (25)RetailTaxOverrideCode | No | None | |
TmpPriceDiscountDataStored transaction data used for price and discount handling.low confidence | ContainerRetailTransactionDataEx3 | No | None | |
TotalManualDiscountAmountTotal cash discount amount entered manually. | RealDiscAmount | No | None | |
TotalManualDiscountPercentageTotal discount percentage entered manually. | RealDiscPct | No | None |
Indexes (1)
SalesQuotationTableIdxUnique, alternate key.
Relations (8)
Each relation joins RetailSalesQuotationTable to another table on the fields shown.
OMInternalOrganization→OMInternalOrganizationJoin on
OMInternalOrganization = OMInternalOrganization.RecIdMany RetailSalesQuotationTable records → zero or one OMInternalOrganization record
RetailChannel→RetailChannelTableJoin on
RetailChannel = RetailChannelTable.RecIdMany RetailSalesQuotationTable records → exactly one RetailChannelTable record
RetailHour→RetailHourJoin on
RetailHourOfDay = RetailHour.RecIdMany RetailSalesQuotationTable records → exactly one RetailHour record
RetailLoyaltyCard→RetailLoyaltyCardJoin on
RetailLoyaltyCard = RetailLoyaltyCard.RecIdMany RetailSalesQuotationTable records → zero or one RetailLoyaltyCard record
RetailReplenishmentLocation→InventLocationJoin on
RetailReplenishmentLocationId = InventLocation.InventLocationIdMany RetailSalesQuotationTable records → zero or one InventLocation record
RetailStoreTable→RetailStoreTableJoin on
RetailStoreId = RetailStoreTable.StoreNumberMany RetailSalesQuotationTable records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
RetailTerminalId = RetailTerminalTable.terminalIdMany RetailSalesQuotationTable records → exactly one RetailTerminalTable record
SalesQuotationTable→SalesQuotationTableJoin on
SalesQuotationTable = SalesQuotationTable.RecIdZero or one RetailSalesQuotationTable record → exactly one SalesQuotationTable record
Get this data out
No public entity reads from RetailSalesQuotationTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailSalesQuotationTable in a report, an integration or a migration? Talk to Dr Dynamics.