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· rootRetailChannelTable· OuterJoin toRetailTransactionIncomeExpenseTrans· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailDirectSalesChannel· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailOnlineChannelTable· Derived toRetailChannelTableRetailTransactionAuditableEntity· InnerJoin toRetailTransactionIncomeExpenseTrans· read-only
Fields (20)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountTypeShows whether the line is an income or an expense. | EnumRetailIncomeExpenseAccountType
| No | Yes | RetailTransactionIncomeExpenseTrans.accountType | |
AmountAmount of the income or expense line. | RealAmount | No | Yes | RetailTransactionIncomeExpenseTrans.amount | |
BusinessDateBusiness date of the transaction. | DateRetailBusinessDate | No | Yes | RetailTransactionIncomeExpenseTrans.businessDate | |
ChannelRetail channel the transaction belongs to, pointing to the channel record. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailTransactionIncomeExpenseTrans.Channel |
AccountNumberNumber of the income or expense account used, pointing to the account record for the store. | StringRetailIncomeExepenseAccount | No | Yes | RetailIncomeExpenseAccountTable.accountNum | RetailTransactionIncomeExpenseTrans.incomeExepenseAccount |
LineNumberLine number within the transaction. | RealLineNum | No | Yes | RetailTransactionIncomeExpenseTrans.lineNum | |
ReceiptNumberNumber printed on the receipt for this transaction. | String (18)RetailReceiptId | No | Yes | RetailTransactionIncomeExpenseTrans.receiptId | |
OperatorIDID of the operator who handled the transaction. | String (25)RetailStaffId | No | Yes | RetailTransactionIncomeExpenseTrans.staff | |
StatementCodeCode of the statement that the line is assigned to. | String (25)RetailStatementCode | No | Yes | RetailTransactionIncomeExpenseTrans.statementCode | |
StatementNumberNumber of the statement that includes this line, pointing to the statement record. | String (20)RetailStatementId | No | Yes | RetailStatementTable.statementId | RetailTransactionIncomeExpenseTrans.statementId |
StoreNumberNumber of the store where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionIncomeExpenseTrans.store |
RegisterNumberNumber of the POS register that handled the transaction. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionIncomeExpenseTrans.terminal |
TransactionIdNumber of the retail transaction that this line belongs to. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.transactionId | RetailTransactionIncomeExpenseTrans.transactionId |
TransactionStatusStatus of the entry, for example voided, posted, concluded or on hold. | EnumRetailTransEntryStatus
| No | Yes | RetailTransactionIncomeExpenseTrans.transactionStatus | |
TransactionDateDate of the transaction. | DateTransDate | No | Yes | RetailTransactionIncomeExpenseTrans.transDate | |
TransactionTimeTime of the transaction. | TimeRetailTransTime | No | Yes | RetailTransactionIncomeExpenseTrans.transTime | |
OperatingUnitRecIdOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OperatingUnitNumberThe number that identifies the operating unit. | String (30)OMOperatingUnitNumber | Yes | Yes | OMOperatingUnit.OMOperatingUnitNumber | |
HeaderStoreNumberStore where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionTable.store |
HeaderStatementNumberStatement number the transaction is included in. | String (20)RetailStatementId | No | Yes | RetailStatementTable.statementId | RetailTransactionTable.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.storeIdMany 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.ChannelMany 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.