Table

RetailTransactionIncomeExpenseTrans

Income/Expense transaction

Holds income and expense lines posted at a point of sale. Each row is identified by channel, store, register, transaction number and line number. It links to an income/expense account, the statement and the work shift.

Table name
RetailTransactionIncomeExpenseTrans
Module
Commerce transactions and orders
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
transactionLineIdx
Replacement key
None
Key fields
Channel, store, terminal, transactionId, lineNum
Model
Foundation

Fields (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ChannelRetail channel the transaction belongs to, pointing to the channel record.Int64
RefRecId
NoRetailChannelTable.RecIdRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
storeNumber of the store where the transaction took place.String
RetailStoreId
NoRetailStoreTable.StoreNumberRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
terminalNumber of the POS register that handled the transaction.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
transactionIdNumber of the retail transaction that this line belongs to.String (44)
RetailTransactionId
NoRetailTransactionTable.transactionIdRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
lineNumLine number within the transaction.Real
LineNum
NoRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
accountTypeShows whether the line is an income or an expense.Enum
RetailIncomeExpenseAccountType
RetailIncomeExpense (enum)
NoRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
amountAmount of the income or expense line.Real
Amount
NoRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
businessDateBusiness date of the transaction.Date
RetailBusinessDate
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransBIEntity
counterCounter value stored with the line.low confidenceInteger
RetailCounter
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionIncomeExpenseTransBIEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoRetailTransactionIncomeExpenseTransBIEntity
incomeExepenseAccountNumber of the income or expense account used, pointing to the account record for the store.String
RetailIncomeExepenseAccount
NoRetailIncomeExpenseAccountTable.accountNumRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
OriginNumber of the location where the record originated.String (50)
RetailConnDistributionLocationId
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionIncomeExpenseTransBIEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
receiptIdNumber printed on the receipt for this transaction.String (18)
RetailReceiptId
NoRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoRetailTransactionIncomeExpenseTransBIEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
replicatedYes/No flag showing whether the record has been replicated.Enum
RetailReplicated
NoYes (enum)
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionIncomeExpenseTransBIEntity
replicationCounterFromOriginCounter used to track replication of the record from where it was created.Integer
RetailReplicationCounter
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionIncomeExpenseTransBIEntity
shiftIdentifier of the work shift of the transaction.String
RetailShiftId
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionIncomeExpenseTransBIEntity
shiftDateDate of the work shift, linked to the work shift record.Date
RetailShiftDate
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionIncomeExpenseTransBIEntity
staffID of the operator who handled the transaction.String (25)
RetailStaffId
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransBIEntity
statementCodeCode of the statement that the line is assigned to.String (25)
RetailStatementCode
NoRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransBIEntity
statementIdNumber of the statement that includes this line, pointing to the statement record.String (20)
RetailStatementId
NoRetailStatementTable.statementIdRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransBIEntity
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
transactionStatusStatus of the entry, for example voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus (enum)
NoRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
transDateDate of the transaction.Date
TransDate
NoRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more
transTimeTime of the transaction.Time
RetailTransTime
NoRetailTransactionIncomeExpenseLineEntityRetailTransactionIncomeExpenseTransEntityRetailTransactionAuditableIncomeExpenseLineEntityand 1 more

Indexes (3)

Relations (7)

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

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailTransactionIncomeExpenseTrans records → zero or one RetailChannelTable record

  • RetailIncomeExpenseAccountTable → RetailIncomeExpenseAccountTable

    Join on store = RetailIncomeExpenseAccountTable.storeId, incomeExepenseAccount = RetailIncomeExpenseAccountTable.accountNum

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailIncomeExpenseAccountTable record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailStatementTable record

  • RetailStoreTable → RetailStoreTable

    Join on store = RetailStoreTable.StoreNumber

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailStoreTable record

  • RetailStoreWorkShiftTable → RetailStoreWorkShiftTable

    Join on shiftDate = RetailStoreWorkShiftTable.shiftDate

    Many RetailTransactionIncomeExpenseTrans records → zero or one RetailStoreWorkShiftTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on terminal = RetailTerminalTable.terminalId

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailTerminalTable record

  • RetailTransactionTable → RetailTransactionTable

    Join on transactionId = RetailTransactionTable.transactionId, store = RetailTransactionTable.store, terminal = RetailTransactionTable.terminal, Channel = RetailTransactionTable.Channel

    Many RetailTransactionIncomeExpenseTrans records → zero or one RetailTransactionTable record

Get this data out

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

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

Email sales@drdynamics.co.uk