Data entity

RetailTransactionIncomeExpenseTransBIEntity

Entity for BI and analytics that 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 is store, register, transaction number, line number and channel.

Entity name
RetailTransactionIncomeExpenseTransBIEntity
Public entity name
RetailTransactionIncomeExpenseTransBIEntity
OData collection
RetailTransactionIncomeExpenseTransBIEntities
Category
Transaction
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
No
Configuration key
Retail
Keys
store, terminal, transactionId, lineNum, Channel
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailTransactionIncomeExpenseTransBIEntities
Dataverse virtual table
mserp_retailtransactionincomeexpensetransbientity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Not enabled for import and export projects.

Data sources

  • RetailTransactionIncomeExpenseTrans · root

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
NoYesRetailChannelTable.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
SysDataAreaIdThe company (legal entity) that the record belongs to.String (4)
DataAreaId
NoYesRetailTransactionIncomeExpenseTrans.DataAreaId
SourceKeyA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoYesRetailTransactionIncomeExpenseTrans.RecId

Foreign keys (6)

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

Need help with RetailTransactionIncomeExpenseTransBIEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk