Data entity
RetailPosBatchEntity
Holds retail shifts at a point of sale register. Each shift has a shift ID, start and closed dates and times, a status, an operator and totals such as sales, returns, discounts, taxes and number of transactions. It links to the store and channel records. The key is the operating unit number, the terminal and the shift ID.
- Entity name
RetailPosBatchEntity- Public entity name
RetailPosBatch- OData collection
RetailPosBatches- Category
Not set- Module
Cash management- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
OperationUnitNumber, Terminal, BatchShiftId- Staging table
RetailPosBatchStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailPosBatches- Dataverse virtual table
mserp_retailposbatchentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailPosBatchTable· rootRetailChannelTable· OuterJoin toRetailPosBatchTable· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailStoreTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTable
Fields (57)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
TerminalNumber of the register where the shift was opened. | StringRetailTerminalId | Yes | Yes | RetailTerminalTable.terminalId | RetailPosBatchTable.TerminalId |
BatchShiftIdID of the shift. | Int64RetailPosBatchID | Yes | Yes | RetailPosBatchTable.BatchID | |
ChannelPoints to the retail channel. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailPosBatchTable.Channel |
CloseDateDate on which the shift was closed. | DateTransDate | No | Yes | RetailPosBatchTable.CloseDate | |
CloseDateTimeUtcDate and time, in UTC, when the shift was closed. | UtcDateTimeTransDateTime | No | Yes | RetailPosBatchTable.CloseDateTimeUtc | |
ClosedAtRegisterNumberNumber of the register where the shift was closed. | StringRetailTerminalId | Yes | Yes | RetailTerminalTable.terminalId | RetailPosBatchTable.ClosedAtTerminal |
CloseTimeTime of day when the shift was closed. | TimeTimeOfDay | No | Yes | RetailPosBatchTable.CloseTime | |
CustomerSalesCountNumber of customer sales in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.CustomersCount | |
DiscountTotalAmountTotal discounts given in the shift. | RealAmount | No | Yes | RetailPosBatchTable.DiscountTotal | |
LogonsCountNumber of logons in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.LogonsCount | |
NoSaleCountNumber of times the cash drawer was opened without a sale. | IntegerCounter | No | Yes | RetailPosBatchTable.NoSaleCount | |
LocationNumberLocation number the record came from. | String (50)RetailConnDistributionLocationId | No | Yes | RetailPosBatchTable.Origin | |
PaidToAccountTotalTotal amount paid to customer accounts in the shift. | RealAmount | No | Yes | RetailPosBatchTable.PaidToAccountTotal | |
PostedYes/no flag showing whether the shift is posted. | EnumPosted
| No | No (private) | RetailPosBatchTable.Posted | |
ReplicationCounterCounter used to track replication of the record. | IntegerRetailReplicationCounter | No | No (private) | RetailPosBatchTable.ReplicationCounter | |
ReturnsTotalTotal value of returns in the shift. | RealAmount | No | Yes | RetailPosBatchTable.ReturnsTotal | |
RoundedAmountTotalTotal rounding amount in the shift. | RealAmount | No | Yes | RetailPosBatchTable.RoundedAmountTotal | |
SalesCountNumber of sales in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.SalesCount | |
SalesTotalTotal value of sales in the shift. | RealAmount | No | Yes | RetailPosBatchTable.SalesTotal | |
OperatorIdID of the operator who ran the shift. | String (25)RetailStaffId | No | Yes | RetailPosBatchTable.StaffId | |
StartDateDate on which the shift started. | DateTransDate | No | Yes | RetailPosBatchTable.StartDate | |
StartDateTimeUtcDate and time, in UTC, when the shift started. | UtcDateTimeTransDateTime | No | Yes | RetailPosBatchTable.StartDateTimeUtc | |
StartTimeTime of day when the shift started. | TimeTimeOfDay | No | Yes | RetailPosBatchTable.StartTime | |
StatementIdNumber of the statement linked to the shift. | String (20)RetailStatementId | No | No (private) | RetailStatementTable.statementId | RetailPosBatchTable.StatementId |
StatusStatus of the shift: open, closed or none. | Enum
| No | Yes | RetailPosBatchTable.Status | |
OperationUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | Yes | Yes | OMOperatingUnit.OMOperatingUnitNumber | |
TaxTotalTotal taxes in the shift. | RealAmount | No | Yes | RetailPosBatchTable.TaxTotal | |
TransactionsCountNumber of transactions in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.TransactionsCount | |
VoidsCountNumber of voided sales in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.VoidsCount | |
ItemsSoldQuantity of items sold in the shift. | RealQty | No | Yes | RetailPosBatchTable.GoodsSoldQty | |
PriceOverrideTotalTotal of manual price reductions in the shift. | RealAmount | No | Yes | RetailPosBatchTable.PriceOverrideTotal | |
ReceiptCopiesCountNumber of receipt copies printed in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.ReceiptCopiesCount | |
ReceiptCopiesTotalTotal amount on receipt copies printed in the shift. | RealAmount | No | Yes | RetailPosBatchTable.ReceiptCopiesTotal | |
ReturnsCountNumber of returns in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.ReturnsCount | |
ReturnsGrandTotalGrand total of returns for the shift. | RealAmount | No | Yes | RetailPosBatchTable.ReturnsGrandTotal | |
SalesGrandTotalGrand total of sales for the shift. | RealAmount | No | Yes | RetailPosBatchTable.SalesGrandTotal | |
ServicesSoldQuantityQuantity of services sold in the shift. | RealQty | No | Yes | RetailPosBatchTable.ServicesSoldQty | |
SuspendedCountNumber of suspended transactions in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.SuspendedCount | |
SuspendedTotalTotal value of suspended transactions in the shift. | RealAmount | No | Yes | RetailPosBatchTable.SuspendedTotal | |
TrainingCountNumber of training transactions in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.TrainingCount | |
TrainingTotalTotal value of training transactions in the shift. | RealAmount | No | Yes | RetailPosBatchTable.TrainingTotal | |
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OrganizationPartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
GiftCardsTotalTotal amount of gift cards in the shift. | RealAmount | No | Yes | RetailPosBatchTable.GiftCardsTotal | |
VoidedSalesTotalTotal value of voided sales in the shift. | RealAmount | No | Yes | RetailPosBatchTable.VoidedSalesTotal | |
ShiftSalesTotalTotal cash sales in the shift. | RealAmount | No | Yes | RetailPosBatchTable.ShiftSalesTotal | |
ShiftReturnsTotalTotal cash returns in the shift. | RealAmount | No | Yes | RetailPosBatchTable.ShiftReturnsTotal | |
GiftCardCashOutTotalTotal amount of gift card cash outs in the shift. | RealAmount | No | Yes | RetailPosBatchTable.GiftCardCashOutTotal | |
ChargeTotalTotal charges in the shift. | RealAmount | No | Yes | RetailPosBatchTable.ChargeTotal | |
ZeroSalesCountNumber of sales with a zero value in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.ZeroSalesCount | |
HasPendingOfflineTransactionsYes/no flag showing whether offline transactions are still pending. | EnumRetailHasPendingOfflineTransactions
| No | Yes | RetailPosBatchTable.HasPendingOfflineTransactions | |
ErrorCodeValidation error state: none, error or acknowledged. | Enum
| No | Yes | RetailPosBatchTable.ErrorCode | |
ErrorFree-text message describing a shift validation error. | String (-1)RetailEodShiftValidationError | No | Yes | RetailPosBatchTable.Error | |
ErrorCodeDateTimeDate and time when the error was acknowledged. | UtcDateTimeRetailEodShiftValidationErrorCodeDateTime | No | Yes | RetailPosBatchTable.ErrorCodeDateTime | |
ErrorCodeEditUserUser who last changed the shift. | StringRetailEodShiftValidationErrorCodeEditUser | No | Yes | RetailPosBatchTable.ErrorCodeEditUser | |
StoreNumberNumber of the store where the shift took place. | StringRetailStoreId | Yes | Yes | RetailStoreTable.StoreNumber | RetailPosBatchTable.StoreId |
ClosedAtBatchIdID of the shift at which this shift was closed. | Int64RetailPosBatchID | No | Yes | RetailPosBatchTable.ClosedAtBatchId |
Foreign keys (6)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
Terminal→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailPosBatchTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailPosBatchTable records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
ClosedAtRegisterNumber→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailPosBatchTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
StatementId→RetailStatementTable.statementId(key of RetailStatementTable)Many RetailPosBatchTable records → exactly one RetailStatementTable record
RetailStatementTable details: see RetailEodStatementAggregationEntity
RetailChannelTable_OMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
StoreNumber→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailPosBatchTable records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
Need help with RetailPosBatchEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.