Data entity

RetailTransactionIncomeExpenseTransEntity

Holds income and expense lines from retail transactions. Each record has an account type, account number, amount, business date, shift and statement details. The key includes the operating unit party number, store, register, transaction number and line number. It links to the retail channel and store.

Entity name
RetailTransactionIncomeExpenseTransEntity
Public entity name
TransactionIncomeExpenseTrans
OData collection
TransactionIncomeExpenseTrans
Category
Transaction
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
OMOperatingUnit_PartyNumber, store, terminal, transactionId, lineNum
Staging table
RetailTransactionIncomeExpenseTransStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/TransactionIncomeExpenseTrans
Dataverse virtual table
mserp_retailtransactionincomeexpensetransentity. 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

  • RetailTransactionIncomeExpenseTrans · root
  • RetailChannelTable · OuterJoin to RetailTransactionIncomeExpenseTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable

Fields (24)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
accountTypeShows whether the line is an income or an expense.Enum
RetailIncomeExpenseAccountType
RetailIncomeExpense
  • Income 0
  • Expense 1
NoYesRetailTransactionIncomeExpenseTrans.accountType
amountAmount of the income or expense line.Real
Amount
NoYesRetailTransactionIncomeExpenseTrans.amount
businessDateBusiness date of the transaction.Date
RetailBusinessDate
NoYesRetailTransactionIncomeExpenseTrans.businessDate
ChannelRetail channel the transaction belongs to, pointing to the channel record.Int64
RefRecId
NoNo (private)RetailChannelTable.RecIdRetailTransactionIncomeExpenseTrans.Channel
counterCounter value stored with the line.low confidenceInteger
RetailCounter
NoYesRetailTransactionIncomeExpenseTrans.counter
incomeExepenseAccountNumber of the income or expense account used, pointing to the account record for the store.String
RetailIncomeExepenseAccount
NoYesRetailIncomeExpenseAccountTable.accountNumRetailTransactionIncomeExpenseTrans.incomeExepenseAccount
lineNumLine number within the transaction.Real
LineNum
NoYesRetailTransactionIncomeExpenseTrans.lineNum
OriginNumber of the location where the record originated.String (50)
RetailConnDistributionLocationId
NoYesRetailTransactionIncomeExpenseTrans.Origin
receiptIdNumber printed on the receipt for this transaction.String (18)
RetailReceiptId
NoYesRetailTransactionIncomeExpenseTrans.receiptId
replicatedYes/No flag showing whether the record has been replicated.Enum
RetailReplicated
NoYes

Platform enum: values not in the metadata extract.

NoYesRetailTransactionIncomeExpenseTrans.replicated
replicationCounterFromOriginCounter used to track replication of the record from where it was created.Integer
RetailReplicationCounter
NoYesRetailTransactionIncomeExpenseTrans.replicationCounterFromOrigin
shiftIdentifier of the work shift of the transaction.String
RetailShiftId
NoYesRetailTransactionIncomeExpenseTrans.shift
shiftDateDate of the work shift, linked to the work shift record.Date
RetailShiftDate
NoYesRetailTransactionIncomeExpenseTrans.shiftDate
staffID of the operator who handled the transaction.String (25)
RetailStaffId
NoYesRetailTransactionIncomeExpenseTrans.staff
statementCodeCode of the statement that the line is assigned to.String (25)
RetailStatementCode
NoYesRetailTransactionIncomeExpenseTrans.statementCode
statementIdNumber of the statement that includes this line, pointing to the statement record.String (20)
RetailStatementId
NoYesRetailStatementTable.statementIdRetailTransactionIncomeExpenseTrans.statementId
storeNumber of the store where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionIncomeExpenseTrans.store
terminalNumber of the POS register that handled the transaction.String
RetailTerminalId
NoYesRetailTerminalTable.terminalIdRetailTransactionIncomeExpenseTrans.terminal
transactionIdNumber of the retail transaction that this line belongs to.String (44)
RetailTransactionId
NoYesRetailTransactionTable.transactionIdRetailTransactionIncomeExpenseTrans.transactionId
transactionStatusStatus of the entry, for example voided, posted, concluded or on hold.Enum
RetailTransEntryStatus
RetailEntryStatus
  • None 0
  • Voided 1
  • Posted 2
  • Concluded 3
  • Cancelled 4
  • OnHold 5
  • Training 6
  • PendingInvoice 7
  • CreatingOrder 8
NoYesRetailTransactionIncomeExpenseTrans.transactionStatus
transDateDate of the transaction.Date
TransDate
NoYesRetailTransactionIncomeExpenseTrans.transDate
transTimeTime of the transaction.Time
RetailTransTime
NoYesRetailTransactionIncomeExpenseTrans.transTime
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
YesYesDirPartyTable.PartyNumber

Foreign keys (7)

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.

  • Channel → RetailChannelTable.RecId (key of RetailChannelTable)

    Many RetailTransactionIncomeExpenseTrans records → zero or one RetailChannelTable record

    RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity

  • incomeExepenseAccount → RetailIncomeExpenseAccountTable.accountNum (key of RetailIncomeExpenseAccountTable)

    Join on all of: incomeExepenseAccount = RetailIncomeExpenseAccountTable.accountNum, store = RetailIncomeExpenseAccountTable.storeId

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailIncomeExpenseAccountTable record

    RetailIncomeExpenseAccountTable details: see RetailIncomeExpenseAccountEntity

  • statementId → RetailStatementTable.statementId (key of RetailStatementTable)

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailStatementTable record

    RetailStatementTable details: see RetailEodStatementAggregationEntity

  • store → RetailStoreTable.StoreNumber (key of RetailStoreTable)

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailStoreTable record

    RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity

  • terminal → RetailTerminalTable.terminalId (key of RetailTerminalTable)

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailTerminalTable record

    RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity

  • transactionId → RetailTransactionTable.transactionId (key of RetailTransactionTable)

    Join on all of: transactionId = RetailTransactionTable.transactionId, store = RetailTransactionTable.store, terminal = RetailTransactionTable.terminal, Channel = RetailTransactionTable.Channel

    Many RetailTransactionIncomeExpenseTrans records → zero or one RetailTransactionTable record

    RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity

  • 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 RetailTransactionIncomeExpenseTransEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk