Data entity

RetailTransactionAuditableIncomeExpenseLineEntity

Holds income and expense lines recorded in retail transactions. Each record has an account type, an account number, an amount, a receipt number and the operator. The key is operating unit, store, register, transaction and line number.

Entity name
RetailTransactionAuditableIncomeExpenseLineEntity
Public entity name
RetailTransactionAuditableIncomeExpenseLine
OData collection
RetailTransactionAuditableIncomeExpenseLines
Category
Transaction
Module
Other (no module in the metadata)
Read-only
No
Data management enabled
No
Configuration key
Retail
Keys
OperatingUnitNumber, StoreNumber, RegisterNumber, TransactionId, LineNumber
Staging table
None

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailTransactionAuditableIncomeExpenseLines
Dataverse virtual table
mserp_retailtransactionauditableincomeexpenselineentity. 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
  • RetailChannelTable · OuterJoin to RetailTransactionIncomeExpenseTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailChannelTable · read-only
  • RetailDirectSalesChannel · Derived to RetailChannelTable
  • RetailStoreTable · Derived to RetailChannelTable
  • RetailMCRChannelTable · Derived to RetailChannelTable
  • RetailOnlineChannelTable · Derived to RetailChannelTable
  • RetailTransactionAuditableEntity · InnerJoin to RetailTransactionIncomeExpenseTrans · read-only

Fields (20)

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
AccountNumberNumber of the income or expense account used, pointing to the account record for the store.String
RetailIncomeExepenseAccount
NoYesRetailIncomeExpenseAccountTable.accountNumRetailTransactionIncomeExpenseTrans.incomeExepenseAccount
LineNumberLine number within the transaction.Real
LineNum
NoYesRetailTransactionIncomeExpenseTrans.lineNum
ReceiptNumberNumber printed on the receipt for this transaction.String (18)
RetailReceiptId
NoYesRetailTransactionIncomeExpenseTrans.receiptId
OperatorIDID 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
StatementNumberNumber of the statement that includes this line, pointing to the statement record.String (20)
RetailStatementId
NoYesRetailStatementTable.statementIdRetailTransactionIncomeExpenseTrans.statementId
StoreNumberNumber of the store where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionIncomeExpenseTrans.store
RegisterNumberNumber 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
TransactionDateDate of the transaction.Date
TransDate
NoYesRetailTransactionIncomeExpenseTrans.transDate
TransactionTimeTime of the transaction.Time
RetailTransTime
NoYesRetailTransactionIncomeExpenseTrans.transTime
OperatingUnitRecIdOperating unit that the channel is based on. It is the key of the record.Int64
RefRecId
NoNo (private)OMOperatingUnit.RecIdRetailChannelTable.OMOperatingUnitID
OperatingUnitNumberThe number that identifies the operating unit.String (30)
OMOperatingUnitNumber
YesYesOMOperatingUnit.OMOperatingUnitNumber
HeaderStoreNumberStore where the transaction took place.String
RetailStoreId
NoYesRetailStoreTable.StoreNumberRetailTransactionTable.store
HeaderStatementNumberStatement number the transaction is included in.String (20)
RetailStatementId
NoYesRetailStatementTable.statementIdRetailTransactionTable.statementId

Foreign keys (9)

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

  • AccountNumber → RetailIncomeExpenseAccountTable.accountNum (key of RetailIncomeExpenseAccountTable)

    Join on all of: AccountNumber = RetailIncomeExpenseAccountTable.accountNum, StoreNumber = RetailIncomeExpenseAccountTable.storeId

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailIncomeExpenseAccountTable record

    RetailIncomeExpenseAccountTable details: see RetailIncomeExpenseAccountEntity

  • StatementNumber → RetailStatementTable.statementId (key of RetailStatementTable)

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailStatementTable record

    RetailStatementTable details: see RetailEodStatementAggregationEntity

  • StoreNumber → RetailStoreTable.StoreNumber (key of RetailStoreTable)

    Many RetailTransactionIncomeExpenseTrans records → exactly one RetailStoreTable record

    RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity

  • RegisterNumber → 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, StoreNumber = RetailTransactionTable.store, RegisterNumber = RetailTransactionTable.terminal, Channel = RetailTransactionTable.Channel

    Many RetailTransactionIncomeExpenseTrans records → zero or one RetailTransactionTable record

    RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity

  • OperatingUnitRecId → OMOperatingUnit.RecId (key of OMOperatingUnit)

    Zero or one RetailChannelTable record → exactly one OMOperatingUnit record

    OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity

  • HeaderStoreNumber → RetailStoreTable.StoreNumber (key of RetailStoreTable)

    Many RetailTransactionTable records → exactly one RetailStoreTable record

    RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity

  • HeaderStatementNumber → RetailStatementTable.statementId (key of RetailStatementTable)

    Many RetailTransactionTable records → exactly one RetailStatementTable record

    RetailStatementTable details: see RetailEodStatementAggregationEntity

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

Email sales@drdynamics.co.uk