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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelReferenceIdReference code the sales channel uses for this quotation.String (50)
RetailOrderChannelReferenceId
NoNone
CouponsStored list of coupons linked to the quotation.Container
RetailCoupons
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DiscountCodesStored list of discount codes linked to the quotation.Container
RetailDiscountCodes
NoNone
InitialReceiptIdReceipt number first created for the order in the point of sale app.String (18)
RetailInitialReceiptId
NoNone
IsPriceAndDiscountRecalculationRequiredYes/no flag showing whether prices and discounts need to be recalculated.Enum
NoYes (enum)
NoNone
IsTaxExemptedForPriceInclusiveYes/no flag showing whether tax was exempted where prices include tax.Enum
RetailIsTaxExemptedForPriceInclusive
NoYes (enum)
NoNone
OMInternalOrganizationPoints to the internal organisation record linked to the quotation.Int64
RefRecId
NoOMInternalOrganization.RecIdNone
OriginalTransactionTimeDate and time of the original transaction, stored in UTC.UtcDateTime
TransDateTime
NoNone
OriginChannelReference to the channel where the quotation originated. No related table is given.low confidenceInt64
RefRecId
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
RetailChannelPoints to the retail channel the quotation relates to.Int64
RefRecId
NoRetailChannelTable.RecIdNone
RetailHourOfDayPoints to the hour-of-day record for the quotation.Int64
RefRecId
NoRetailHour.RecIdNone
RetailLoyaltyCardPoints to the loyalty card linked to the quotation.Int64
RefRecId
NoRetailLoyaltyCard.RecIdNone
RetailOrderYes/no flag showing whether the record is a retail one.Enum
NoYes (enum)
NoNone
RetailPrepaymentOverriddenYes/no flag showing whether the prepayment was overridden.Enum
NoYesId
NoYes (enum)
NoNone
RetailReplenishmentLocationIdCode of the warehouse linked to the quotation.String
SalesInventLocationId
NoInventLocation.InventLocationIdNone
RetailRetailStatusTypeRetail status of the quotation, for example Document, Sent, Part receipt, Closed or Canceled.Enum
RetailRetailStatusType
RetailRetailStatusTypeBase (enum)
NoNone
RetailStoreIdNumber of the store linked to the quotation.String
RetailStoreId
NoRetailStoreTable.StoreNumberNone
RetailTerminalIdNumber of the POS register linked to the quotation.String
RetailTerminalId
NoRetailTerminalTable.terminalIdNone
SalesQuotationTablePoints to the sales quotation this retail data belongs to.Int64
RefRecId
NoSalesQuotationTable.RecIdNone
ShouldUseUnifiedPricingEngineOnSalesOrderYes/no flag for using the unified pricing engine on the order.Enum
NoYes (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxOverrideCodeCode that replaces the normal sales tax handling.String (25)
RetailTaxOverrideCode
NoNone
TmpPriceDiscountDataStored transaction data used for price and discount handling.low confidenceContainer
RetailTransactionDataEx3
NoNone
TotalManualDiscountAmountTotal cash discount amount entered manually.Real
DiscAmount
NoNone
TotalManualDiscountPercentageTotal discount percentage entered manually.Real
DiscPct
NoNone

Indexes (1)

Relations (8)

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

  • OMInternalOrganization → OMInternalOrganization

    Join on OMInternalOrganization = OMInternalOrganization.RecId

    Many RetailSalesQuotationTable records → zero or one OMInternalOrganization record

  • RetailChannel → RetailChannelTable

    Join on RetailChannel = RetailChannelTable.RecId

    Many RetailSalesQuotationTable records → exactly one RetailChannelTable record

  • RetailHour → RetailHour

    Join on RetailHourOfDay = RetailHour.RecId

    Many RetailSalesQuotationTable records → exactly one RetailHour record

  • RetailLoyaltyCard → RetailLoyaltyCard

    Join on RetailLoyaltyCard = RetailLoyaltyCard.RecId

    Many RetailSalesQuotationTable records → zero or one RetailLoyaltyCard record

  • RetailReplenishmentLocation → InventLocation

    Join on RetailReplenishmentLocationId = InventLocation.InventLocationId

    Many RetailSalesQuotationTable records → zero or one InventLocation record

  • RetailStoreTable → RetailStoreTable

    Join on RetailStoreId = RetailStoreTable.StoreNumber

    Many RetailSalesQuotationTable records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on RetailTerminalId = RetailTerminalTable.terminalId

    Many RetailSalesQuotationTable records → exactly one RetailTerminalTable record

  • SalesQuotationTable → SalesQuotationTable

    Join on SalesQuotationTable = SalesQuotationTable.RecId

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

Email sales@drdynamics.co.uk