Table

RetailStoreWorkShiftTrans

Work shift trans

Holds work shift lines for a store and shift. Each line has opening and closing dates and times, a status and a statement method (operator ID, POS terminal, total or shift). It links to the work shift table, staff and terminals.

Table name
RetailStoreWorkShiftTrans
Module
Commerce employees
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
closingDateDate the line ended.Date
RetailEndingDate
NoRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
closingTimeTime the line ended.Time
RetailEndingTime
NoRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
openingDateDate the line started.Date
RetailStartingDate
NoRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
openingTimeTime the line started.Time
RetailStartingTime
NoRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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 for replication of the record.Integer
RetailReplicationCounter
NoNone
shiftDateDate of the shift, linked to the work shift table.Date
RetailShiftDate
YesRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
shiftIdID of the work shift, linked to the work shift setup of the store.String (1)
RetailWorkShiftId
YesRetailWorkShiftSetup.workShiftIdRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
statementCodeCode of the statement, which refers to a staff member or a POS terminal.String (25)
RetailStatementCode
YesRetailStaffTable.staffIdRetailTerminalTable.terminalIdRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
statementMethodWay the statement is grouped: by operator ID, POS terminal, total or shift.Enum
RetailStatementMethod
RetailStaffTerminalTotal (enum)
NoRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
statusStatus of the line: open, closed or posted.Enum
RetailWorkShiftStatus (enum)
NoRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
StoreRecIdPoints to the store the line belongs to.Int64
RefRecId
NoRetailStoreTable.RecIdRetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity
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

Indexes (1)

Relations (5)

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

  • RetailStaffTable → RetailStaffTable

    Join on statementCode = RetailStaffTable.staffId, statementMethod = RetailStaffTerminalTotal::Staff

    Many RetailStoreWorkShiftTrans records → zero or one RetailStaffTable record

  • RetailStoreTable → RetailStoreTable

    Join on StoreRecId = RetailStoreTable.RecId

    One or more RetailStoreWorkShiftTrans records → exactly one RetailStoreTable record

  • RetailStoreWorkShiftTable → RetailStoreWorkShiftTable

    Join on shiftDate = RetailStoreWorkShiftTable.shiftDate

    Many RetailStoreWorkShiftTrans records → zero or one RetailStoreWorkShiftTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on statementCode = RetailTerminalTable.terminalId

    Many RetailStoreWorkShiftTrans records → exactly one RetailTerminalTable record

  • RetailWorkShiftSetup → RetailWorkShiftSetup

    Join on shiftId = RetailWorkShiftSetup.workShiftId, StoreRecId = RetailWorkShiftSetup.StoreRecId

    One or more RetailStoreWorkShiftTrans records → exactly one RetailWorkShiftSetup record

Get this data out

Tables are not exposed directly. These public entities read from RetailStoreWorkShiftTrans; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk