Table
RetailPosBatchTable
Shifts
Holds retail point-of-sale shifts. Each shift is identified by store, register and shift ID. It stores shift start and close details, totals for sales, returns, discounts, taxes and counts of events, such as logons. It links to the store, register, channel and statement. It also holds shift validation error details.
- Table name
RetailPosBatchTable- Module
Commerce transactions and orders- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
StoreTerminalBatchIdx- Replacement key
None- Key fields
StoreId, TerminalId, BatchID- Model
Foundation
Fields (73)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreIdNumber of the store where the shift took place. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity |
TerminalIdNumber of the register where the shift was opened. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity |
BatchIDID of the shift. | Int64RetailPosBatchID | Yes | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
CancellationChargesAmount of cancellation charges for the shift. | RealAmount | No | RetailPosBatchTableEntity | |
ChannelPoints to the retail channel. | Int64RefRecId | No | RetailChannelTable.RecId | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity |
ChargeTotalTotal charges in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ClosedAtBatchIdID of the shift at which this shift was closed. | Int64RetailPosBatchID | No | RetailPosBatchEntityRetailPosBatchTableEntity | |
CloseDateDate on which the shift was closed. | DateTransDate | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
CloseDateTimeUtcDate and time, in UTC, when the shift was closed. | UtcDateTimeTransDateTime | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ClosedAtTerminalNumber of the register where the shift was closed. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity |
CloseTimeTime of day when the shift was closed. | TimeTimeOfDay | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustomerOrdersCanceledAmount of customer orders cancelled in the shift. | RealAmount | No | RetailPosBatchTableEntity | |
CustomerOrdersEditedAmount of customer orders edited in the shift. | RealAmount | No | RetailPosBatchTableEntity | |
CustomerOrdersPlacedAmount of customer orders placed in the shift. | RealAmount | No | RetailPosBatchTableEntity | |
CustomerOrdersVoidedLinesAmount of voided customer order lines in the shift. | RealAmount | No | RetailPosBatchTableEntity | |
CustomersCountNumber of customer sales in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DepositCollectedAmount of deposits collected in the shift. | RealAmount | No | RetailPosBatchTableEntity | |
DepositRedeemedAmount of deposits redeemed in the shift. | RealAmount | No | RetailPosBatchTableEntity | |
DepositRefundedAmount of deposits refunded in the shift. | RealAmount | No | RetailPosBatchTableEntity | |
DiscountTotalTotal discounts given in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ErrorFree-text message describing a shift validation error. | String (-1)RetailEodShiftValidationError | No | RetailPosBatchEntityRetailPosBatchTableEntity | |
ErrorCodeValidation error state: none, error or acknowledged. | EnumRetailEodShiftValidationErrorCode (enum) | No | RetailPosBatchEntityRetailPosBatchTableEntity | |
ErrorCodeDateTimeDate and time when the error was acknowledged. | UtcDateTimeRetailEodShiftValidationErrorCodeDateTime | No | RetailPosBatchEntityRetailPosBatchTableEntity | |
ErrorCodeEditUserUser who last changed the shift. | StringRetailEodShiftValidationErrorCodeEditUser | No | RetailPosBatchEntityRetailPosBatchTableEntity | |
GiftCardCashOutTotalTotal amount of gift card cash outs in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
GiftCardsTotalTotal amount of gift cards in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
GoodsSoldQtyQuantity of items sold in the shift. | RealQty | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
HasPendingOfflineTransactionsYes/no flag showing whether offline transactions are still pending. | EnumRetailHasPendingOfflineTransactionsNoYes (enum) | No | RetailPosBatchEntityRetailPosBatchTableEntity | |
LogonsCountNumber of logons in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
MarkForFinancialStatementYes/no flag marking a statement for posting in a financial statement. | EnumNoYes (enum) | No | RetailPosBatchTableEntity | |
NoSaleCountNumber of times the cash drawer was opened without a sale. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
OriginLocation number the record came from. | String (50)RetailConnDistributionLocationId | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
PaidToAccountTotalTotal amount paid to customer accounts in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PostedYes/no flag showing whether the shift is posted. | EnumPostedNoYes (enum) | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
PriceOverrideTotalTotal of manual price reductions in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ReceiptCopiesCountNumber of receipt copies printed in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ReceiptCopiesTotalTotal amount on receipt copies printed in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ReceiptsCountNumber of cash receipts in the shift. | IntegerCounter | No | RetailPosBatchTableEntity | |
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 replication of the record. | IntegerRetailReplicationCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ReturnsCountNumber of returns in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ReturnsGrandTotalGrand total of returns for the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ReturnsTotalTotal value of returns in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
RoundedAmountTotalTotal rounding amount in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
SalesCountNumber of sales in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
SalesGrandTotalGrand total of sales for the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
SalesTotalTotal value of sales in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
SalesTotalExcludingTaxTotal sales excluding VAT. | RealAmount | No | RetailPosBatchTableEntity | |
SalesTotalIncludingTaxTotal sales including VAT. | RealAmount | No | RetailPosBatchTableEntity | |
ServicesSoldQtyQuantity of services sold in the shift. | RealQty | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ShiftReturnsTotalTotal cash returns in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ShiftSalesTotalTotal cash sales in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
StaffIdID of the operator who ran the shift. | String (25)RetailStaffId | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
StartDateDate on which the shift started. | DateTransDate | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
StartDateTimeUtcDate and time, in UTC, when the shift started. | UtcDateTimeTransDateTime | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
StartTimeTime of day when the shift started. | TimeTimeOfDay | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
StatementIdNumber of the statement linked to the shift. | String (20)RetailStatementId | No | RetailStatementTable.statementId | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity |
StatusStatus of the shift: open, closed or none. | EnumRetailPosBatchStatus (enum) | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
SuspendedCountNumber of suspended transactions in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
SuspendedTotalTotal value of suspended transactions in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
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 | |
TaxTotalTotal taxes in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
TrainingCountNumber of training transactions in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
TrainingTotalTotal value of training transactions in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
TransactionsCountNumber of transactions in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
VoidedSalesTotalTotal value of voided sales in the shift. | RealAmount | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
VoidsCountNumber of voided sales in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity | |
ZeroSalesCountNumber of sales with a zero value in the shift. | IntegerCounter | No | RetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity |
Indexes (5)
StoreTerminalBatchIdxPrimary indexUnique, alternate key.
StatementCloseTimestampIdxStatementId,Status,Posted,CloseTime,CloseDate,TerminalIdNot unique.
LocationIdxNot unique.
StatementIdPostedStatusIdxNot unique.
FinancialStatementStoreId,StatementId,Posted,Status,CloseDate,MarkForFinancialStatementNot unique.
Relations (5)
Each relation joins RetailPosBatchTable to another table on the fields shown.
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailPosBatchTable records → zero or one RetailChannelTable record
RetailStatementTable→RetailStatementTableJoin on
StatementId = RetailStatementTable.statementIdMany RetailPosBatchTable records → exactly one RetailStatementTable record
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailPosBatchTable records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailPosBatchTable records → exactly one RetailTerminalTable record
RetailTerminalTableClose→RetailTerminalTableJoin on
ClosedAtTerminal = RetailTerminalTable.terminalIdMany RetailPosBatchTable records → exactly one RetailTerminalTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailPosBatchTable; use one of them in Power BI, Power Platform or a data management project.
RetailPosBatch2Entity· 48 fields from this tableRetailPosBatchEntity· 54 fields from this tableRetailPosBatchTableEntity· 66 fields from this table
Need help with RetailPosBatchTable in a report, an integration or a migration? Talk to Dr Dynamics.