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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreIdNumber of the store. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailPosBatchAccountTransEntity |
TerminalIdNumber of the point-of-sale register. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailPosBatchAccountTransEntity |
BatchIDIdentifies the shift. | Int64RetailPosBatchID | Yes | RetailPosBatchTable.BatchID | RetailPosBatchAccountTransEntity |
AccountNumIncome or expense account that the amount is posted against. | StringRetailIncomeExepenseAccount | Yes | RetailIncomeExpenseAccountTable.accountNum | RetailPosBatchAccountTransEntity |
AccountTypeShows whether the account is an income or an expense account. | EnumRetailIncomeExpenseAccountTypeRetailIncomeExpense (enum) | No | RetailPosBatchAccountTransEntity | |
AmountTotal amount for the account in the shift. | RealTotal | No | RetailPosBatchAccountTransEntity | |
ChannelPoints to the retail channel. | Int64RefRecId | No | RetailChannelTable.RecId | RetailPosBatchAccountTransEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
OriginNumber of the location the record came from.low confidence | String (50)RetailConnDistributionLocationId | No | RetailPosBatchAccountTransEntity | |
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 | |
ReplicationCounterCounter used to track data replication.low confidence | IntegerRetailReplicationCounter | No | RetailPosBatchAccountTransEntity | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
StoreTerminalBatchAccountIdxPrimary indexStoreId,TerminalId,BatchID,AccountNumUnique, alternate key.
LocationIdxNot unique.
TerminalIBatchIdAccountTypeAmountStoreId,TerminalId,BatchId,AccountType,AmountNot unique.
Relations (5)
Each relation joins RetailPosBatchAccountTrans to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailPosBatchAccountTrans records → zero or one RetailChannelTable record
RetailIncomeExpenseAccountTable→RetailIncomeExpenseAccountTableJoin on
AccountNum = RetailIncomeExpenseAccountTable.accountNum,StoreId = RetailIncomeExpenseAccountTable.storeIdMany RetailPosBatchAccountTrans records → exactly one RetailIncomeExpenseAccountTable record
RetailPosBatchTable→RetailPosBatchTableJoin on
StoreId = RetailPosBatchTable.StoreId,TerminalId = RetailPosBatchTable.TerminalId,BatchID = RetailPosBatchTable.BatchIDMany RetailPosBatchAccountTrans records → exactly one RetailPosBatchTable record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailPosBatchAccountTrans records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany 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.
RetailPosBatchAccountTransEntity· 9 fields from this table
Need help with RetailPosBatchAccountTrans in a report, an integration or a migration? Talk to Dr Dynamics.