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 descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreIdNumber of the store where the shift took place.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
TerminalIdNumber of the register where the shift was opened.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
BatchIDID of the shift.Int64
RetailPosBatchID
YesRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
CancellationChargesAmount of cancellation charges for the shift.Real
Amount
NoRetailPosBatchTableEntity
ChannelPoints to the retail channel.Int64
RefRecId
NoRetailChannelTable.RecIdRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ChargeTotalTotal charges in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ClosedAtBatchIdID of the shift at which this shift was closed.Int64
RetailPosBatchID
NoRetailPosBatchEntityRetailPosBatchTableEntity
CloseDateDate on which the shift was closed.Date
TransDate
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
CloseDateTimeUtcDate and time, in UTC, when the shift was closed.UtcDateTime
TransDateTime
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ClosedAtTerminalNumber of the register where the shift was closed.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
CloseTimeTime of day when the shift was closed.Time
TimeOfDay
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CustomerOrdersCanceledAmount of customer orders cancelled in the shift.Real
Amount
NoRetailPosBatchTableEntity
CustomerOrdersEditedAmount of customer orders edited in the shift.Real
Amount
NoRetailPosBatchTableEntity
CustomerOrdersPlacedAmount of customer orders placed in the shift.Real
Amount
NoRetailPosBatchTableEntity
CustomerOrdersVoidedLinesAmount of voided customer order lines in the shift.Real
Amount
NoRetailPosBatchTableEntity
CustomersCountNumber of customer sales in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DepositCollectedAmount of deposits collected in the shift.Real
Amount
NoRetailPosBatchTableEntity
DepositRedeemedAmount of deposits redeemed in the shift.Real
Amount
NoRetailPosBatchTableEntity
DepositRefundedAmount of deposits refunded in the shift.Real
Amount
NoRetailPosBatchTableEntity
DiscountTotalTotal discounts given in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ErrorFree-text message describing a shift validation error.String (-1)
RetailEodShiftValidationError
NoRetailPosBatchEntityRetailPosBatchTableEntity
ErrorCodeValidation error state: none, error or acknowledged.Enum
RetailEodShiftValidationErrorCode (enum)
NoRetailPosBatchEntityRetailPosBatchTableEntity
ErrorCodeDateTimeDate and time when the error was acknowledged.UtcDateTime
RetailEodShiftValidationErrorCodeDateTime
NoRetailPosBatchEntityRetailPosBatchTableEntity
ErrorCodeEditUserUser who last changed the shift.String
RetailEodShiftValidationErrorCodeEditUser
NoRetailPosBatchEntityRetailPosBatchTableEntity
GiftCardCashOutTotalTotal amount of gift card cash outs in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
GiftCardsTotalTotal amount of gift cards in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
GoodsSoldQtyQuantity of items sold in the shift.Real
Qty
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
HasPendingOfflineTransactionsYes/no flag showing whether offline transactions are still pending.Enum
RetailHasPendingOfflineTransactions
NoYes (enum)
NoRetailPosBatchEntityRetailPosBatchTableEntity
LogonsCountNumber of logons in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
MarkForFinancialStatementYes/no flag marking a statement for posting in a financial statement.Enum
NoYes (enum)
NoRetailPosBatchTableEntity
NoSaleCountNumber of times the cash drawer was opened without a sale.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
OriginLocation number the record came from.String (50)
RetailConnDistributionLocationId
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
PaidToAccountTotalTotal amount paid to customer accounts in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PostedYes/no flag showing whether the shift is posted.Enum
Posted
NoYes (enum)
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
PriceOverrideTotalTotal of manual price reductions in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ReceiptCopiesCountNumber of receipt copies printed in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ReceiptCopiesTotalTotal amount on receipt copies printed in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ReceiptsCountNumber of cash receipts in the shift.Integer
Counter
NoRetailPosBatchTableEntity
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 replication of the record.Integer
RetailReplicationCounter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ReturnsCountNumber of returns in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ReturnsGrandTotalGrand total of returns for the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ReturnsTotalTotal value of returns in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
RoundedAmountTotalTotal rounding amount in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
SalesCountNumber of sales in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
SalesGrandTotalGrand total of sales for the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
SalesTotalTotal value of sales in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
SalesTotalExcludingTaxTotal sales excluding VAT.Real
Amount
NoRetailPosBatchTableEntity
SalesTotalIncludingTaxTotal sales including VAT.Real
Amount
NoRetailPosBatchTableEntity
ServicesSoldQtyQuantity of services sold in the shift.Real
Qty
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ShiftReturnsTotalTotal cash returns in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ShiftSalesTotalTotal cash sales in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
StaffIdID of the operator who ran the shift.String (25)
RetailStaffId
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
StartDateDate on which the shift started.Date
TransDate
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
StartDateTimeUtcDate and time, in UTC, when the shift started.UtcDateTime
TransDateTime
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
StartTimeTime of day when the shift started.Time
TimeOfDay
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
StatementIdNumber of the statement linked to the shift.String (20)
RetailStatementId
NoRetailStatementTable.statementIdRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
StatusStatus of the shift: open, closed or none.Enum
RetailPosBatchStatus (enum)
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
SuspendedCountNumber of suspended transactions in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
SuspendedTotalTotal value of suspended transactions in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
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
TaxTotalTotal taxes in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
TrainingCountNumber of training transactions in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
TrainingTotalTotal value of training transactions in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
TransactionsCountNumber of transactions in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
VoidedSalesTotalTotal value of voided sales in the shift.Real
Amount
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
VoidsCountNumber of voided sales in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity
ZeroSalesCountNumber of sales with a zero value in the shift.Integer
Counter
NoRetailPosBatch2EntityRetailPosBatchEntityRetailPosBatchTableEntity

Indexes (5)

Relations (5)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailPosBatchTable records → zero or one RetailChannelTable record

  • RetailStatementTable → RetailStatementTable

    Join on StatementId = RetailStatementTable.statementId

    Many RetailPosBatchTable records → exactly one RetailStatementTable record

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailPosBatchTable records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailPosBatchTable records → exactly one RetailTerminalTable record

  • RetailTerminalTableClose → RetailTerminalTable

    Join on ClosedAtTerminal = RetailTerminalTable.terminalId

    Many 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.

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

Email sales@drdynamics.co.uk