Data entity
ChargeOverrideHistoryEntity
Records each time a charge on a sales order was overridden. It is keyed by sales order, transaction number, charge code and override time. It stores the original and overridden amounts, the reason, and who made the change, either at the point of sale or in the call centre. Store and register numbers are included.
- Entity name
ChargeOverrideHistoryEntity- Public entity name
OverrideHistory- OData collection
OverrideHistories- Category
Transaction- Module
Transactions and orders- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
SalesOrderId, TransactionId, ChargeCode, OverrideTime- Staging table
ChargeOverrideHistoryStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/OverrideHistories- Dataverse virtual table
mserp_chargeoverridehistoryentity. 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
ChargeOverrideHistory· root
Fields (16)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ChargeCodeCode of the charge that was overridden. | String | No | Yes | ChargeOverrideHistory.ChargeCode | |
OriginalAmountAmount of the charge before the override. | RealSalesPrice | No | Yes | ChargeOverrideHistory.OriginalAmount | |
OverrideAmountAmount of the charge after the override. | RealSalesPrice | No | Yes | ChargeOverrideHistory.OverrideAmount | |
OverrideReasonText giving the reason for the override. | String (60)RetailInfocodeTranslationDescription | No | Yes | ChargeOverrideHistory.OverrideReason | |
SalesOrderIdCustomer order that carries the charge. Blank when the charge is not on a customer order. | String (20)SalesIdBase | No | Yes | SalesTable.SalesId | ChargeOverrideHistory.SalesOrderId |
TransactionIdRetail transaction that carries the charge. Blank when it is not on a cash and carry transaction. | String (44)RetailTransactionId | No | Yes | RetailTransactionTable.transactionId | ChargeOverrideHistory.TransactionId |
UserIdPoint of sale user who made the override, when it was made there. | String (25)HcmPersonnelNumberId | No | Yes | ChargeOverrideHistory.UserId | |
OverrideTimeDate and time the override was made. | UtcDateTimeCreatedDateTime | No | Yes | ChargeOverrideHistory.OverrideTime | |
ChannelChannel of the related retail transaction. Together with store, terminal and transaction number it identifies that transaction. | Int64RefRecId | No | Yes | ChargeOverrideHistory.Channel | |
StoreStore number of the related retail transaction. | StringRetailStoreId | No | Yes | ChargeOverrideHistory.Store | |
TerminalRegister number of the related retail transaction. | StringRetailTerminalId | No | Yes | ChargeOverrideHistory.Terminal | |
AxUserIdUser who made the override in the main application rather than at the point of sale. | StringRetailAxChargeOverrideUserId | No | Yes | ChargeOverrideHistory.AxUserId | |
MarkupTransRecIdSystem record ID of the charge transaction that was overridden. | Int64RefRecId | No | Yes | ChargeOverrideHistory.MarkupTransRecId | |
OriginalValueValue of the field before the override. | String (512)RetailChargeOriginalValue | No | Yes | ChargeOverrideHistory.OriginalValue | |
OverriddenFieldNumberNumber that identifies which field was overridden. | IntegerRetailFieldNum | No | Yes | ChargeOverrideHistory.OverriddenFieldNum | |
OverriddenValueValue of the field after the override. | String (512)RetailChargeOverriddenValue | No | Yes | ChargeOverrideHistory.OverriddenValue |
Foreign keys (2)
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.
SalesOrderId→SalesTable.SalesId(key of SalesTable)Many ChargeOverrideHistory records → zero or one SalesTable record
SalesTable details: see SalesOrderHeaderV3Entity, SalesOrderHeaderV2Entity, SalesOrderHeaderV4Entity
TransactionId→RetailTransactionTable.transactionId(key of RetailTransactionTable)Join on all of:
TransactionId=RetailTransactionTable.transactionId,Channel=RetailTransactionTable.Channel,Store=RetailTransactionTable.store,Terminal=RetailTransactionTable.terminalMany ChargeOverrideHistory records → zero or one RetailTransactionTable record
RetailTransactionTable details: see RetailTransactionEntity, RetailTransactionTableBIEntity, RetailTransactionTableCDREntity
Need help with ChargeOverrideHistoryEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.