Table
ChargeOverrideHistory
Records each time a charge was overridden, with the original and new amounts and an override reason. It links to a sales order or a retail transaction, and to the user who made the change. It has no key in the metadata.
- Table name
ChargeOverrideHistory- Module
Commerce transactions and orders- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (24)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AxUserIdUser who made the override in the main application rather than at the point of sale. | StringRetailAxChargeOverrideUserId | No | ChargeOverrideHistoryEntity | |
ChannelChannel of the related retail transaction. Together with store, terminal and transaction number it identifies that transaction. | Int64RefRecId | No | RetailTransactionTable.Channel | ChargeOverrideHistoryEntity |
ChargeCodeCode of the charge that was overridden. | String | No | ChargeOverrideHistoryEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MarkupTransRecIdSystem record ID of the charge transaction that was overridden. | Int64RefRecId | No | ChargeOverrideHistoryEntity | |
OriginalAmountAmount of the charge before the override. | RealSalesPrice | No | ChargeOverrideHistoryEntity | |
OriginalValueValue of the field before the override. | String (512)RetailChargeOriginalValue | No | ChargeOverrideHistoryEntity | |
OverriddenFieldNumNumber that identifies which field was overridden. | IntegerRetailFieldNum | No | ChargeOverrideHistoryEntity | |
OverriddenValueValue of the field after the override. | String (512)RetailChargeOverriddenValue | No | ChargeOverrideHistoryEntity | |
OverrideAmountAmount of the charge after the override. | RealSalesPrice | No | ChargeOverrideHistoryEntity | |
OverrideReasonText giving the reason for the override. | String (60)RetailInfocodeTranslationDescription | No | ChargeOverrideHistoryEntity | |
OverrideTimeDate and time the override was made. | UtcDateTimeCreatedDateTime | No | ChargeOverrideHistoryEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ReplicationCounterFromOriginCounter used when the record is replicated between systems. | IntegerRetailReplicationCounter | No | None | |
SalesOrderIdCustomer order that carries the charge. Blank when the charge is not on a customer order. | String (20)SalesIdBase | No | SalesTable.SalesId | ChargeOverrideHistoryEntity |
StoreStore number of the related retail transaction. | StringRetailStoreId | No | RetailTransactionTable.store | ChargeOverrideHistoryEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TerminalRegister number of the related retail transaction. | StringRetailTerminalId | No | RetailTransactionTable.terminal | ChargeOverrideHistoryEntity |
TransactionIdRetail transaction that carries the charge. Blank when it is not on a cash and carry transaction. | String (44)RetailTransactionId | No | RetailTransactionTable.transactionId | ChargeOverrideHistoryEntity |
UserIdPoint of sale user who made the override, when it was made there. | String (25)HcmPersonnelNumberId | No | ChargeOverrideHistoryEntity |
Indexes (3)
UserAndTimeNot unique.
MarkupTransRecIdNot unique.
OverrideTimeNot unique.
Relations (4)
Each relation joins ChargeOverrideHistory to another table on the fields shown.
SalesOrder→SalesTableJoin on
SalesOrderId = SalesTable.SalesIdMany ChargeOverrideHistory records → zero or one SalesTable record
Transaction→RetailTransactionTableJoin on
TransactionId = RetailTransactionTable.transactionId,Channel = RetailTransactionTable.Channel,Store = RetailTransactionTable.store,Terminal = RetailTransactionTable.terminalMany ChargeOverrideHistory records → zero or one RetailTransactionTable record
OverrideUser→HcmWorkerJoin on
UserId = HcmWorker.PersonnelNumberMany ChargeOverrideHistory records → zero or one HcmWorker record
AxOverrideUser→UserInfoJoin on
AxUserId = UserInfo.idMany ChargeOverrideHistory records → zero or one UserInfo record
Get this data out
Tables are not exposed directly. These public entities read from ChargeOverrideHistory; use one of them in Power BI, Power Platform or a data management project.
ChargeOverrideHistoryEntity· 16 fields from this table
Need help with ChargeOverrideHistory in a report, an integration or a migration? Talk to Dr Dynamics.