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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ItemIdItem number the figures belong to. | String (20)ItemId | Yes | InventTable.ItemId | None |
CustAccountCustomer account the figures belong to. | String (20)CustAccount | Yes | CustTable.AccountNum | None |
WorkerSalesResponsibleWorker responsible for the sales. | Int64WorkerSalesResponsible | No | HcmWorker.RecId | None |
TransDateDate of the statistics. | DateTransDate | No | None | |
CostAmountCost amount for the item in this row. | RealCostAmount | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ItemGroupIdItem group the item belongs to. | StringItemGroupId | No | InventItemGroup.ItemGroupId | None |
LineOfBusinessIdLine of business linked to the customer. | StringCustLineOfBusinessId | No | LineOfBusiness.LineOfBusinessId | 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 | |
SalesAmountSales amount recorded in this row. | RealSalesAmount | No | None | |
SalesQtySales quantity recorded in this row. | RealSalesQty | No | None | |
StatisticsGroupStatistics group the figures belong to. | StringCustStatGroupId | No | CustStatisticsGroup.CustStatisticsGroup | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
ItemCustIdxReplacement keyItemId,CustAccount,WorkerSalesResponsible,TransDateUnique, alternate key.
CustItemIdxCustAccount,ItemId,WorkerSalesResponsible,TransDateUnique.
Relations (6)
Each relation joins SalesOrderEntryStatistics to another table on the fields shown.
CustStatisticsGroup→CustStatisticsGroupJoin on
StatisticsGroup = CustStatisticsGroup.CustStatisticsGroupMany SalesOrderEntryStatistics records → zero or one CustStatisticsGroup record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany SalesOrderEntryStatistics records → exactly one CustTable record
InventItemGroup→InventItemGroupJoin on
ItemGroupId = InventItemGroup.ItemGroupIdMany SalesOrderEntryStatistics records → zero or one InventItemGroup record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany SalesOrderEntryStatistics records → exactly one InventTable record
LineOfBusiness→LineOfBusinessJoin on
LineOfBusinessId = LineOfBusiness.LineOfBusinessIdMany SalesOrderEntryStatistics records → zero or one LineOfBusiness record
WorkerSalesResponsible_FK→HcmWorkerJoin on
WorkerSalesResponsible = HcmWorker.RecIdMany 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.