Data entity
RetailPosBatchTableEntity
Holds point-of-sale shifts. Each record is keyed by store, register and shift ID. It includes the operator, start and closed dates and times, and totals such as sales, returns, discounts and customer sales. It also shows whether the shift is posted.
- Entity name
RetailPosBatchTableEntity- Public entity name
PosBatchTable- OData collection
PosBatchTables- Category
Document- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
StoreId, TerminalId, BatchID- Staging table
RetailPosBatchTableStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PosBatchTables- Dataverse virtual table
mserp_retailposbatchtableentity. 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-onlyRetailMCRChannelTable· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTable
Fields (68)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
TerminalIdNumber of the register where the shift was opened. | StringRetailTerminalId | Yes | Yes | RetailTerminalTable.terminalId | RetailPosBatchTable.TerminalId |
BatchIDID of the shift. | Int64RetailPosBatchID | Yes | Yes | RetailPosBatchTable.BatchID | |
CancellationChargesAmount of cancellation charges for the shift. | RealAmount | No | Yes | RetailPosBatchTable.CancellationCharges | |
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 | |
ClosedAtTerminalNumber 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 | |
CustomersCountNumber of customer sales in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.CustomersCount | |
CustomerOrdersCanceledAmount of customer orders cancelled in the shift. | RealAmount | No | Yes | RetailPosBatchTable.CustomerOrdersCanceled | |
CustomerOrdersEditedAmount of customer orders edited in the shift. | RealAmount | No | Yes | RetailPosBatchTable.CustomerOrdersEdited | |
CustomerOrdersPlacedAmount of customer orders placed in the shift. | RealAmount | No | Yes | RetailPosBatchTable.CustomerOrdersPlaced | |
CustomerOrdersVoidedLinesAmount of voided customer order lines in the shift. | RealAmount | No | Yes | RetailPosBatchTable.CustomerOrdersVoidedLines | |
DepositCollectedAmount of deposits collected in the shift. | RealAmount | No | Yes | RetailPosBatchTable.DepositCollected | |
DepositRedeemedAmount of deposits redeemed in the shift. | RealAmount | No | Yes | RetailPosBatchTable.DepositRedeemed | |
DepositRefundedAmount of deposits refunded in the shift. | RealAmount | No | Yes | RetailPosBatchTable.DepositRefunded | |
DiscountTotalTotal 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 | |
OriginLocation 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 | Yes | RetailPosBatchTable.Posted | |
ReplicationCounterCounter used to track replication of the record. | IntegerRetailReplicationCounter | No | Yes | 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 | |
StaffIdID 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 | Yes | RetailStatementTable.statementId | RetailPosBatchTable.StatementId |
StatusStatus of the shift: open, closed or none. | Enum
| No | Yes | RetailPosBatchTable.Status | |
StoreIdNumber of the store where the shift took place. | StringRetailStoreId | Yes | Yes | RetailStoreTable.StoreNumber | RetailPosBatchTable.StoreId |
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 | |
GoodsSoldQtyQuantity 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 | |
ServicesSoldQtyQuantity 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 | |
GiftCardsTotalTotal amount of gift cards in the shift. | RealAmount | No | Yes | RetailPosBatchTable.GiftCardsTotal | |
GiftCardCashOutTotalTotal amount of gift card cash outs in the shift. | RealAmount | No | Yes | RetailPosBatchTable.GiftCardCashOutTotal | |
ReceiptsCountNumber of cash receipts in the shift. | IntegerCounter | No | Yes | RetailPosBatchTable.ReceiptsCount | |
SalesTotalIncludingTaxTotal sales including VAT. | RealAmount | No | Yes | RetailPosBatchTable.SalesTotalIncludingTax | |
SalesTotalExcludingTaxTotal sales excluding VAT. | RealAmount | No | Yes | RetailPosBatchTable.SalesTotalExcludingTax | |
VoidedSalesTotalTotal value of voided sales in the shift. | RealAmount | No | Yes | RetailPosBatchTable.VoidedSalesTotal | |
ShiftReturnsTotalTotal cash returns in the shift. | RealAmount | No | Yes | RetailPosBatchTable.ShiftReturnsTotal | |
ShiftSalesTotalTotal cash sales in the shift. | RealAmount | No | Yes | RetailPosBatchTable.ShiftSalesTotal | |
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 | |
ErrorFree-text message describing a shift validation error. | String (-1)RetailEodShiftValidationError | No | Yes | RetailPosBatchTable.Error | |
ErrorCodeValidation error state: none, error or acknowledged. | Enum
| No | Yes | RetailPosBatchTable.ErrorCode | |
ErrorCodeDateTimeDate and time when the error was acknowledged. | UtcDateTimeRetailEodShiftValidationErrorCodeDateTime | No | Yes | RetailPosBatchTable.ErrorCodeDateTime | |
ErrorCodeEditUserUser who last changed the shift. | StringRetailEodShiftValidationErrorCodeEditUser | No | Yes | RetailPosBatchTable.ErrorCodeEditUser | |
MarkForFinancialStatementYes/no flag marking a statement for posting in a financial statement. | Enum
| No | Yes | RetailPosBatchTable.MarkForFinancialStatement | |
ClosedAtBatchIdID of the shift at which this shift was closed. | Int64RetailPosBatchID | No | Yes | RetailPosBatchTable.ClosedAtBatchId | |
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber |
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.
TerminalId→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
ClosedAtTerminal→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
StoreId→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailPosBatchTable records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
RetailChannelTable_OMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Need help with RetailPosBatchTableEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.