Table

RetailTerminalCounter

Terminal counter

Holds running counter values for each POS register in a store. The key is store, register and counter type. The counter type is either grand sales or grand return.

Table name
RetailTerminalCounter
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
StoreTerminalCounterTypeIdx
Replacement key
StoreTerminalCounterTypeIdx
Key fields
Store, Terminal, CounterType
Model
Foundation

Fields (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreThe store the register belongs to, linked to the store record.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailTerminalCounterEntity
TerminalThe POS register the counter belongs to, linked to the register record.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailTerminalCounterEntity
CounterTypeSays whether the counter tracks grand sales or grand returns.Enum
RetailCounterType (enum)
YesRetailTerminalCounterEntity
CounterValueThe total amount held in the counter for this register and counter type.Real
RetailCounterValue
NoRetailTerminalCounterEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
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
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

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

  • RetailStoresToDeploy → RetailStoresToDeploy

    Join on Store = RetailStoresToDeploy.StoreNumber

    Many RetailTerminalCounter records → zero or one RetailStoresToDeploy record

  • RetailStoreTable → RetailStoreTable

    Join on Store = RetailStoreTable.StoreNumber

    Many RetailTerminalCounter records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on Terminal = RetailTerminalTable.terminalId

    Many RetailTerminalCounter records → exactly one RetailTerminalTable record

Get this data out

Tables are not exposed directly. These public entities read from RetailTerminalCounter; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk