Table

MCRSalesStatsCustTable

Sales statistics

Holds sales statistics for each customer, with one record per customer account. It includes invoiced totals, cost, returns, order dates and order frequency. It also holds recency, frequency and monetary scores and a combined RFM score. It links to the customer record.

Table name
MCRSalesStatsCustTable
Module
Commerce transactions and orders
Table group
TransactionHeader
Table type
Regular
Data per company
Yes
Configuration key
MCRCallCenter
Primary index
CustAccount
Replacement key
CustAccount
Key fields
CustAccount
Model
Foundation

Fields (26)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CustAccountCustomer account these statistics belong to. It points to the customer record.String (20)
CustAccount
YesCustTable.AccountNumNone
AvgInvoiceAmountMSTAverage invoiced amount for the customer, in accounting currency.Real
AmountMST
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
CustomerCreationDateTimeDate and time when the customer was created.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DirtyYes/No flag showing that new transactions exist for this customer.Enum
NoYes (enum)
NoNone
EndDateEnd date of the period the statistics cover.Date
EndDate
NoNone
FirstOrderDateDate of the customer's first order.Date
TransDate
NoNone
FrequencyScoreScore for how often the customer orders, used as part of the RFM rating.Real
MCRScore
NoNone
LastOrderDateDate of the customer's most recent order.Date
TransDate
NoNone
MCRRFMCompositeCombined RFM (recency, frequency, monetary) score for the customer, held as a whole number.Integer
MCRRFMComposite
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
MonetaryScoreScore for how much the customer spends, used as part of the RFM rating.Real
MCRScore
NoNone
OrderFrequencyNumber count describing how often the customer places orders.Integer
Counter
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecencyScoreScore for how recently the customer ordered, used as part of the RFM rating.Real
MCRScore
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
StartDateStart date of the period the statistics cover.Date
StartDate
NoNone
StatLastOrderDateLast order date used for the statistics.Date
TransDate
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TotalInvoiceAmountMSTTotal invoiced amount for the customer, in accounting currency.Real
AmountMST
NoNone
TotalInvoiceCostAmountMSTTotal cost linked to the customer's invoiced sales, in accounting currency.Real
AmountMST
NoNone
TotalReturnInvoicedAmountMSTTotal amount of returns invoiced for the customer, in accounting currency.Real
AmountMST
NoNone

Indexes (1)

  • CustAccountPrimary indexReplacement key

    CustAccount

    Unique, alternate key.

Relations (1)

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

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Zero or one MCRSalesStatsCustTable record → exactly one CustTable record

Get this data out

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

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

Email sales@drdynamics.co.uk