Table

SalesOrderEntryStatistics

Order entry statistics

Holds order entry statistics: sales amount, cost amount and sales quantity. Rows are identified by item, customer account, sales responsible worker and date. They also link to the item group, line of business and statistics group.

Table name
SalesOrderEntryStatistics
Module
Accounts receivable
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
RecId
Replacement key
ItemCustIdx
Key fields
ItemId, CustAccount, WorkerSalesResponsible, TransDate
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ItemIdItem number the figures belong to.String (20)
ItemId
YesInventTable.ItemIdNone
CustAccountCustomer account the figures belong to.String (20)
CustAccount
YesCustTable.AccountNumNone
WorkerSalesResponsibleWorker responsible for the sales.Int64
WorkerSalesResponsible
NoHcmWorker.RecIdNone
TransDateDate of the statistics.Date
TransDate
NoNone
CostAmountCost amount for the item in this row.Real
CostAmount
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ItemGroupIdItem group the item belongs to.String
ItemGroupId
NoInventItemGroup.ItemGroupIdNone
LineOfBusinessIdLine of business linked to the customer.String
CustLineOfBusinessId
NoLineOfBusiness.LineOfBusinessIdNone
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
SalesAmountSales amount recorded in this row.Real
SalesAmount
NoNone
SalesQtySales quantity recorded in this row.Real
SalesQty
NoNone
StatisticsGroupStatistics group the figures belong to.String
CustStatGroupId
NoCustStatisticsGroup.CustStatisticsGroupNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (6)

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

  • CustStatisticsGroup → CustStatisticsGroup

    Join on StatisticsGroup = CustStatisticsGroup.CustStatisticsGroup

    Many SalesOrderEntryStatistics records → zero or one CustStatisticsGroup record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many SalesOrderEntryStatistics records → exactly one CustTable record

  • InventItemGroup → InventItemGroup

    Join on ItemGroupId = InventItemGroup.ItemGroupId

    Many SalesOrderEntryStatistics records → zero or one InventItemGroup record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many SalesOrderEntryStatistics records → exactly one InventTable record

  • LineOfBusiness → LineOfBusiness

    Join on LineOfBusinessId = LineOfBusiness.LineOfBusinessId

    Many SalesOrderEntryStatistics records → zero or one LineOfBusiness record

  • WorkerSalesResponsible_FK → HcmWorker

    Join on WorkerSalesResponsible = HcmWorker.RecId

    Many SalesOrderEntryStatistics records → zero or one HcmWorker record

Get this data out

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

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

Email sales@drdynamics.co.uk