Table

RetailPosBatchAccountTrans

Shift account transactions

Holds income and expense account totals for a point-of-sale shift. Each record is identified by store, register, shift and account. It records the account type and the total amount.

Table name
RetailPosBatchAccountTrans
Module
Commerce transactions and orders
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
StoreTerminalBatchAccountIdx
Replacement key
None
Key fields
StoreId, TerminalId, BatchID, AccountNum
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreIdNumber of the store.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailPosBatchAccountTransEntity
TerminalIdNumber of the point-of-sale register.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailPosBatchAccountTransEntity
BatchIDIdentifies the shift.Int64
RetailPosBatchID
YesRetailPosBatchTable.BatchIDRetailPosBatchAccountTransEntity
AccountNumIncome or expense account that the amount is posted against.String
RetailIncomeExepenseAccount
YesRetailIncomeExpenseAccountTable.accountNumRetailPosBatchAccountTransEntity
AccountTypeShows whether the account is an income or an expense account.Enum
RetailIncomeExpenseAccountType
RetailIncomeExpense (enum)
NoRetailPosBatchAccountTransEntity
AmountTotal amount for the account in the shift.Real
Total
NoRetailPosBatchAccountTransEntity
ChannelPoints to the retail channel.Int64
RefRecId
NoRetailChannelTable.RecIdRetailPosBatchAccountTransEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
OriginNumber of the location the record came from.low confidenceString (50)
RetailConnDistributionLocationId
NoRetailPosBatchAccountTransEntity
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
ReplicationCounterCounter used to track data replication.low confidenceInteger
RetailReplicationCounter
NoRetailPosBatchAccountTransEntity
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 (3)

Relations (5)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailPosBatchAccountTrans records → zero or one RetailChannelTable record

  • RetailIncomeExpenseAccountTable → RetailIncomeExpenseAccountTable

    Join on AccountNum = RetailIncomeExpenseAccountTable.accountNum, StoreId = RetailIncomeExpenseAccountTable.storeId

    Many RetailPosBatchAccountTrans records → exactly one RetailIncomeExpenseAccountTable record

  • RetailPosBatchTable → RetailPosBatchTable

    Join on StoreId = RetailPosBatchTable.StoreId, TerminalId = RetailPosBatchTable.TerminalId, BatchID = RetailPosBatchTable.BatchID

    Many RetailPosBatchAccountTrans records → exactly one RetailPosBatchTable record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailPosBatchAccountTrans records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailPosBatchAccountTrans records → exactly one RetailTerminalTable record

Get this data out

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

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

Email sales@drdynamics.co.uk