Table

MCRHistSalesTable

Sales order history

Holds a history copy of sales order header data, with one record per sales order ID. It carries customer, delivery, invoicing, payment, discount, intercompany and shipping carrier details. It also holds call centre settings such as continuity, exchange and standing orders. It links back to the live order through SalesTableRefRecId.

Table name
MCRHistSalesTable
Module
Commerce transactions and orders
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
MCRCallCenter
Primary index
SalesIdx
Replacement key
SalesIdx
Key fields
SalesId
Model
Foundation

Fields (179)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesIdSales order number; the key of this table.String (20)
SalesIdBase
YesNone
AddressRefRecIdRecord ID of the address-related record this row points to; the table is given by the reference table ID.Int64
AddressRefRecId
NoNone
AddressRefTableIdID of the table that the address reference record belongs to.Integer
AddressRefTableId
NoNone
AutoSummaryModuleTypeSays whether summary update parameters apply to the customer or to the sales order.Enum
ModuleCustSales (enum)
NoNone
BankCentralBankPurposeCodeCentral bank purpose code recorded for the order.String
BankCentralBankPurposeCode
NoNone
BankCentralBankPurposeTextFree text that explains the central bank purpose.String (210)
BankCentralBankPurposeText
NoNone
BankDocumentTypeType of bank document linked to the order, such as letter of credit or import collection.Enum
BankDocumentFacilityNature
BankDocumentType (enum)
NoNone
CaseTaggingYes/No flag for tagging cases, as in RFID tagging.Enum
RFIDCaseTagging
NoYes (enum)
NoNone
CashDiscCode of the cash discount applied to the order.String
CustCashDiscCode
NoNone
CashDiscPercentCash discount as a percentage.Real
DiscPct
NoNone
CommissionGroupCommission group for the customer.String
CommissCustomerGroup
NoNone
ContactPersonIdID of the contact person for the order.String (20)
ContactPersonId
NoNone
CountyOrigDestCounty of origin or destination, used for address and statistics data.String (30)
AddressCountyOrigDest
NoNone
CovStatusStatus number used for the cash flow forecast.Integer
CovStatus
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreditCardApprovalAmountAmount approved on the credit card, in the accounting currency.Real
AmountMST
NoNone
CreditCardAuthorizationAuthorisation code returned for the credit card payment.String (36)
CreditCardAuthorization
NoNone
CreditCardAuthorizationErrorYes/No flag that shows whether a capture error occurred.Enum
NoYesId
NoYes (enum)
NoNone
CreditCardCustRefIdPoints to the customer credit card record used for the order.Int64
MCRCreditCardCustRefRecId
NoCreditCardCust.RecIdNone
CreditCardProcessorTransactionIdTransaction reference given by the credit card processor.String (48)
CreditCardProcessorTransactionId
NoNone
CurrencyCodeCurrency code of the order.String (3)
CustCurrencyCode
NoNone
CustAccountCustomer account that the order belongs to.String (20)
CustAccount
YesCustTable.AccountNumNone
CustGroupCustomer group of the customer.String
CustGroupId
NoNone
CustInvoiceIdInvoice number linked to the order.String (20)
CustInvoiceId
NoNone
CustomerRefThe customer's own reference text for the order.String (60)
CustRef
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeadlineDeadline date for the order.Date
SalesDeadline
NoNone
DefaultDimensionPoints to the set of default financial dimension values for the order.Int64
DimensionDefault
NoDimensionAttributeValueSet.RecIdNone
DeliveryAddressFull delivery address as one text.String (250)
Addressing
NoNone
DeliveryCityCity of the delivery address.String (60)
AddressCity
NoNone
DeliveryCountryRegionIdCountry or region of the delivery address.String
AddressCountryRegionId
NoNone
DeliveryCountyCounty of the delivery address.String (30)
AddressCountyId
NoNone
DeliveryDateShip date for the delivery.Date
SalesShippingDate
NoNone
DeliveryDateControlTypeMethod used to control the delivery date, such as sales lead time, ATP or CTP.Enum
SalesDeliveryDateControlType (enum)
NoNone
DeliveryNameName of the party receiving the delivery.String (160)
CustName
NoNone
DeliveryPostalAddressPoints to the postal address record used for delivery.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
DeliveryStateState of the delivery address.String
LogisticsAddressStateId
NoNone
DeliveryStreetStreet of the delivery address.String (250)
AddressStreet
NoNone
DeliveryZipCodeZIP or postal code of the delivery address.String
LogisticsAddressZipCodeId
NoNone
DiscPercentOrder-level discount percentage taken from trade agreements; other discount types are not included.Real
SalesEndDiscPct
NoNone
DlvModeMode of delivery, such as the transport method.String
CustDlvModeId
NoNone
DlvReasonCode that gives the reason for the delivery.String
DlvReasonId
NoNone
DlvTermDelivery terms agreed for the order.String
CustDlvTermId
NoNone
DocumentStatusLatest document type produced for the order, such as confirmation, packing slip or invoice.Enum
DocumentStatus (enum)
NoNone
EInvoiceAccountCodeDimension account code used for electronic invoicing.String (35)
EInvoiceAccountCode
NoNone
EInvoiceLineSpecYes/No flag for line-specific electronic invoicing.Enum
EInvoiceLineSpecific
NoYes (enum)
NoNone
EmailEmail address linked to the order.String (80)
Email
NoNone
EndDiscTotal discount group code.String
CustEndDiscCode
NoNone
EnterpriseNumberEnterprise number of the customer for tax purposes.String (50)
TaxEnterpriseNumber
NoNone
EstimateEstimated gross amount of the order; currency not stated in the metadata.Real
SalesEstimateGross
NoNone
ExportReasonText that gives the reason for export.String (30)
SalesExportReason
NoNone
FixedDueDateFixed due date set for payment.Date
SalesFixedDueDate
NoNone
FixedExchRateFixed exchange rate to use for the order.Real
SalesFixedExchRate
NoNone
FreightSlipTypeType of call tag, for example UPS.Enum
CustFreightSlipType
FreightSlipType (enum)
NoNone
FreightZoneUPS zone used for freight.String
CustFreightZoneId
NoNone
GiroTypeType of payment slip attached to the customer invoice, such as FIK or Blue slip.Enum
PaymentStubInvoiceId
PaymentStub (enum)
NoNone
InclTaxYes/No flag that shows whether prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
InterCompanyAllowIndirectCreationYes/No flag that allows indirect creation of intercompany orders.Enum
InterCompanyAllowIndirectCreation
NoYes (enum)
NoNone
InterCompanyAllowIndirectCreationOrigOriginal value of the allow indirect creation flag for intercompany orders.Enum
InterCompanyAllowIndirectCreation
NoYes (enum)
NoNone
InterCompanyAutoCreateOrdersYes/No flag for creating intercompany orders automatically.Enum
InterCompanyAutoCreateOrders
NoYes (enum)
NoNone
InterCompanyCompanyIdCompany (legal entity) used on the intercompany order.String
InterCompanyCompanyId
NoNone
InterCompanyDirectDeliveryYes/No flag for direct delivery in an intercompany order.Enum
InterCompanyDirectDelivery
NoYes (enum)
NoNone
InterCompanyDirectDeliveryOrigOriginal value of the direct delivery flag for intercompany orders.Enum
InterCompanyDirectDelivery
NoYes (enum)
NoNone
InterCompanyOrderYes/No flag that marks the order as intercompany.Enum
InterCompanyCustomer
NoYes (enum)
NoNone
InterCompanyOriginShows whether the intercompany order is the source or derived from another order.Enum
InterCompanyOrigin (enum)
NoNone
InterCompanyOriginalCustAccountCustomer account on the original intercompany order.String (20)
InterCompanyOriginalCustAccount
NoNone
InterCompanyOriginalSalesIdSales order ID of the original intercompany order.String (20)
InterCompanyOriginalSalesId
NoNone
InterCompanyPurchIdPurchase order ID linked in the intercompany chain.String (20)
InterCompanyPurchId
NoNone
InterCompanySkipUpdateYes/No flag with no label. Purpose not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
InventLocationIdWarehouse for the order.String
SalesInventLocationId
NoNone
InventSiteIdInventory site for the order.String
InventSiteId
NoNone
InvoiceAccountCustomer account that receives the invoice.String (20)
CustInvoiceAccount
NoNone
ItemTaggingYes/No flag for tagging items, as in RFID tagging.Enum
RFIDItemTagging
NoYes (enum)
NoNone
LanguageIdLanguage code of the customer for the order.String (7)
CustLanguageId
NoNone
LineDiscLine discount group code.String
CustLineDiscCode
NoNone
ListcodeList code used for EU trade reporting, such as triangular trade or production on toll.Enum
ListcodeId
Listcode (enum)
NoNone
ManualEntryChangepolicyPoints to a price discount change policy record; labelled Dummy.low confidenceInt64
PriceDiscPolicyManual
NoPriceDiscChangePolicy.RecIdNone
MarkupGroupCharges group code for the order.String
CustMarkupGroupId
NoNone
MatchingAgreementPoints to the agreement header linked to the order.Int64
AgreementHeaderRecId
NoAgreementHeader.RecIdNone
MCRAdvanceCreditYes/No flag for advance credit.Enum
MCRAdvanceCredit
NoYes (enum)
NoNone
MCRAdvanceExchangeAdvance exchange status, such as hold for receipt or release exchange.Enum
MCRAdvanceExchange (enum)
NoNone
MCRApplyCreditToExchangeYes/No flag for applying credit to an exchange.Enum
MCRApplyCreditToExchange
NoYes (enum)
NoNone
MCRCloseDateDate the order was closed.Date
TransDate
NoNone
MCRContinuitychildYes/No flag that marks the order as a continuity child order.Enum
MCRContinuityChildOrder
NoYes (enum)
NoNone
MCRContinuityLineEvalPayment evaluation for continuity lines, such as pay all now or paid; no label is given.low confidenceEnum
MCRContinuityLineEval (enum)
NoNone
MCRContinuityOrderYes/No flag that marks the order as a continuity order.Enum
MCRContinuityOrder
NoYes (enum)
NoNone
MCRDefaultClassificationDefault classification code for the order.String
MCRDefaultClassification
NoNone
MCREndOrderYes/No flag for an end order.low confidenceEnum
NoYes (enum)
NoNone
MCRExpediteExpedite code for the order.String
MCRExpedite
NoNone
MCRFTCExemptYes/No flag that exempts the order from automatic notification and cancellation.Enum
MCRFTCExempt
NoYes (enum)
NoNone
MCRInclCompleteYes/No flag to include the complete order.Enum
NoYes (enum)
NoNone
MCRInstallmentOrderSubmittedYes/No flag that shows whether the installment order was submitted.Enum
NoYes (enum)
NoNone
MCRIsExchangeYes/No flag that marks the order as an exchange.Enum
NoYes (enum)
NoNone
MCRIsStandingOrderYes/No flag that marks the order as a standing order.Enum
NoYes (enum)
NoNone
MCRIsTemplateYes/No flag that marks the order as a template.Enum
NoYes (enum)
NoNone
MCRIsTemplateActiveYes/No flag that shows whether the order template is active.Enum
NoYes (enum)
NoNone
MCRLastInvoiceDateDate of the last invoice for the order.Date
TransDate
NoNone
MCRMarkupTotalTotal amount of charges on the order; currency not stated in the metadata.Real
MarkupAmount
NoNone
MCROfferUpSellShownYes/No flag that shows whether a catalogue up-sell was shown.Enum
NoYesId
NoYes (enum)
NoNone
MCROriginalBalanceOriginal balance of the order, in the transaction currency.Real
AmountCur
NoNone
MCROriginalSalesIdSales order ID of the original order.String (20)
MCROriginalSalesId
NoNone
MCROrigShippingDateRequestedShip date that was first requested.Date
SalesShippingDateRequested
NoNone
MCROutOfBalanceReleasedHow an out-of-balance amount was handled, such as bill, write off or refund.Enum
MCROutOfBalanceReleaseType (enum)
NoNone
MCRPaymOutOfBalanceShows whether payment is overpaid or underpaid.Enum
MCRPaymOutOfBalance (enum)
NoNone
MCRPriceOverrideYes/No flag for a total discount override.Enum
NoYesId
NoYes (enum)
NoNone
MCRPromptedForInstBillingOptionYes/No flag that shows whether the user was asked about installment billing.Enum
MCRPromptedForInstBillingOption
NoYes (enum)
NoNone
MCRReceiptDateDate the goods were received.Date
DlvDate
NoNone
MCRRefWMSShipmentIdShipment ID from warehouse management linked to the order.String (20)
WMSShipmentId
NoNone
MCRSalesTableCreatedDateTimeDate and time the order was created.UtcDateTime
DateTimeAccepted
NoNone
MCRShipCompleteYes/No flag that asks for the order to ship complete.Enum
NoYes (enum)
NoNone
MCRSmmTMCallListIDID of the call list linked to the order.String (20)
smmTMCallListID
NoNone
MCRSOAllocPriorityPriority of the order for fulfilment, from High 1 to Low 10.Enum
MCRSOAllocPriority (enum)
NoNone
MCRSourceIdSource code of the order.String (20)
MCRSourceIdForm
NoNone
MCRWebConfirmDtTimeDate and time the web order was confirmed.UtcDateTime
TransDateTime
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
MultiLineDiscMultiline discount group code.String
CustMultiLineDiscCode
NoNone
NumberSequenceGroupNumber sequence group used for the order.String
NumberSequenceGroupId
NoNone
OneTimeCustomerYes/No flag that marks the customer as one-time.Enum
OneTimeCustomer
NoYes (enum)
NoNone
PalletTaggingYes/No flag for tagging pallets, as in RFID tagging.Enum
RFIDPalletTagging
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentPayment terms code for the order.String (100)
CustPaymTermId
NoNone
PaymentSchedPayment schedule code for the order.String (30)
PaymSchedId
NoNone
PaymModeMethod of payment for the order.String
CustPaymMode
NoNone
PaymSpecPayment specification code.String
CustPaymSpec
NoNone
PortPort code used for Intrastat reporting.String
IntrastatPortId
NoNone
PostingProfileCustomer posting profile for the order.String
CustPostingProfile
NoNone
PriceGroupIdPrice group of the customer for the order.String
CustPriceGroup
NoNone
ProjIdProject ID linked to the order.String (20)
ProjId
NoNone
PurchIdPurchase order ID linked to the order.String (20)
PurchId
NoNone
PurchOrderFormNumCustomer's requisition or purchase order number.String (20)
CustPurchaseOrder
NoNone
QuotationIdID of the quotation the order came from.String (20)
QuotationId
NoNone
ReceiptDateConfirmedConfirmed receipt date for the goods.Date
SalesReceiptDateConfirmed
NoNone
ReceiptDateRequestedReceipt date the customer asked for.Date
SalesReceiptDateRequested
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
ReservationHow stock is reserved for the order: manual, automatic or explosion.Enum
ItemReservation (enum)
NoNone
ReturnDeadlineDeadline date for a return.Date
ReturnDeadline
NoNone
ReturnItemNumReturn merchandise authorisation (RMA) number.String
SalesReturnItemNum
NoNone
ReturnReasonCodeIdCode that gives the reason for a return.String
ReturnReasonCodeId
NoNone
ReturnReplacementCreatedYes/No flag for an up-front replacement on a return.Enum
ReturnReplacementCreated
NoYes (enum)
NoNone
ReturnReplacementIdReference to the replacement order.String (20)
ReturnReplacementId
NoNone
ReturnStatusStatus of a return: none, created, open, cancelled or closed.Enum
ReturnStatusHeader (enum)
NoNone
SalesGroupSales group used for commission.String
CommissSalesGroup
NoNone
SalesNameName on the sales order.String (60)
SalesName
NoNone
SalesOriginIdCode for the origin of the sales order.String
SalesOriginId
NoNone
SalesPoolIdSales pool the order belongs to.String
SalesPoolId
NoNone
SalesStatusOrder status: none, open order, delivered, invoiced or cancelled.Enum
SalesStatus (enum)
NoNone
SalesTableRefRecIdPoints to the sales order record this history row relates to.Int64
SalesTableRefRecId
NoSalesTable.RecIdNone
SalesTypeType of order, such as sales order, returned order, subscription or customer prepayment.Enum
SalesType (enum)
NoNone
SalesUnitIdSales unit ID.String (20)
smmSalesUnitId
NoNone
SettleVoucherSettlement type: none, open transactions or designated transactions.Enum
SalesSettlementType
SettlementType (enum)
NoNone
ShipCarrierAccountCustomer's account number with the carrier.String (25)
ShipCarrierAccount
NoNone
ShipCarrierAccountCodeAccount code for the carrier.String (20)
ShipCarrierAccountCode
NoNone
ShipCarrierBlindShipmentYes/No flag for a blind shipment.Enum
ShipCarrierBlindShipment
NoYes (enum)
NoNone
ShipCarrierDeliveryContactName of the delivery contact for the carrier.String (60)
Name
NoNone
ShipCarrierDlvTypeCarrier service type: miscellaneous, ground, air or pickup.Enum
ShipCarrierDlvType (enum)
NoNone
ShipCarrierExpeditedShipmentYes/No flag for an expedited shipment.Enum
ShipCarrierExpeditedShipment
NoYes (enum)
NoNone
ShipCarrierFuelSurchargeYes/No flag for charging a fuel surcharge.Enum
ShipCarrierFuelSurcharge
NoYes (enum)
NoNone
ShipCarrierIdID of the carrier.String
ShipCarrierId
NoNone
ShipCarrierNameName of the third-party carrier.String (100)
LogisticsShipCarrierName
NoNone
ShipCarrierPostalAddressPoints to the postal address record for the carrier.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
ShipCarrierResidentialYes/No flag that marks a residential destination.Enum
ShipCarrierResidentialDest
NoYes (enum)
NoNone
ShippingDateConfirmedConfirmed ship date.Date
SalesShippingDateConfirmed
NoNone
ShippingDateRequestedShip date the customer asked for.Date
SalesShippingDateRequested
NoNone
SkipUpdateControls whether intercompany updates are skipped: no, internal, intercompany or both.Enum
InterCompanySkipUpdate (enum)
NoNone
smmCampaignIdCampaign ID linked to the order.String
smmCampaignId
NoNone
smmSalesAmountTotalTotal sales amount of the order; currency not stated in the metadata.Real
smmSalesAmountTotal
NoNone
SourceDocumentHeaderPoints to the source document header record for the order.Int64
SourceDocumentHeaderRefRecId
NoSourceDocumentHeader.RecIdNone
StatProcIdStatistics procedure code used for Intrastat.String
IntrastatProcId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupSales tax group of the order.String
TaxGroup
NoNone
TouchedYes/No flag for update status.low confidenceEnum
TradeTouched
NoYes (enum)
NoNone
TransactionCodeTransaction code used for Intrastat.String
IntrastatTransactionCodeId
NoNone
TransportTransport code used for Intrastat.String
IntrastatTransport
NoNone
URLInternet address linked to the order.String (255)
URL
NoNone
VATNumTax exempt number.String (20)
VATNumJournal
NoNone
WorkerSalesResponsibleWorker responsible for the sale.Int64
WorkerSalesResponsible
NoHcmWorker.RecIdNone
WorkerSalesTakerWorker who took the order.Int64
SalesTaker
NoHcmWorker.RecIdNone

Indexes (2)

Relations (12)

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

  • Agreement → AgreementHeader

    Join on MatchingAgreement = AgreementHeader.RecId

    Many MCRHistSalesTable records → zero or one AgreementHeader record

  • Common → Common

    Join on AddressRefRecId = Common.RecId, AddressRefTableId = Common.TableId

    Many MCRHistSalesTable records → zero or one Common record

  • CreditCard → CreditCardCust

    Join on CreditCardCustRefId = CreditCardCust.RecId

    Many MCRHistSalesTable records → zero or one CreditCardCust record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many MCRHistSalesTable records → zero or one DimensionAttributeValueSet record

  • DeliveryPostalAddress_FK → LogisticsPostalAddress

    Join on DeliveryPostalAddress = LogisticsPostalAddress.RecId

    Many MCRHistSalesTable records → zero or one LogisticsPostalAddress record

  • MCRCustomerAccount → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many MCRHistSalesTable records → exactly one CustTable record

  • PriceDiscChangePolicyRecId2 → PriceDiscChangePolicy

    Join on ManualEntryChangepolicy = PriceDiscChangePolicy.RecId

    Many MCRHistSalesTable records → zero or one PriceDiscChangePolicy record

  • SalesTableRefRecId → SalesTable

    Join on SalesTableRefRecId = SalesTable.RecId

    Many MCRHistSalesTable records → zero or one SalesTable record

  • ShipCarrierPostalAddress_FK → LogisticsPostalAddress

    Join on ShipCarrierPostalAddress = LogisticsPostalAddress.RecId

    Many MCRHistSalesTable records → zero or one LogisticsPostalAddress record

  • SourceDocumentHeader → SourceDocumentHeader

    Join on SourceDocumentHeader = SourceDocumentHeader.RecId

    Many MCRHistSalesTable records → zero or one SourceDocumentHeader record

  • WorkerSalesResponsible_FK → HcmWorker

    Join on WorkerSalesResponsible = HcmWorker.RecId

    Many MCRHistSalesTable records → zero or one HcmWorker record

  • WorkerSalesTaker_FK → HcmWorker

    Join on WorkerSalesTaker = HcmWorker.RecId

    Many MCRHistSalesTable records → zero or one HcmWorker record

Get this data out

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

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

Email sales@drdynamics.co.uk