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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AxUserIdUser who made the override in the main application rather than at the point of sale.String
RetailAxChargeOverrideUserId
NoChargeOverrideHistoryEntity
ChannelChannel of the related retail transaction. Together with store, terminal and transaction number it identifies that transaction.Int64
RefRecId
NoRetailTransactionTable.ChannelChargeOverrideHistoryEntity
ChargeCodeCode of the charge that was overridden.StringNoChargeOverrideHistoryEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
MarkupTransRecIdSystem record ID of the charge transaction that was overridden.Int64
RefRecId
NoChargeOverrideHistoryEntity
OriginalAmountAmount of the charge before the override.Real
SalesPrice
NoChargeOverrideHistoryEntity
OriginalValueValue of the field before the override.String (512)
RetailChargeOriginalValue
NoChargeOverrideHistoryEntity
OverriddenFieldNumNumber that identifies which field was overridden.Integer
RetailFieldNum
NoChargeOverrideHistoryEntity
OverriddenValueValue of the field after the override.String (512)
RetailChargeOverriddenValue
NoChargeOverrideHistoryEntity
OverrideAmountAmount of the charge after the override.Real
SalesPrice
NoChargeOverrideHistoryEntity
OverrideReasonText giving the reason for the override.String (60)
RetailInfocodeTranslationDescription
NoChargeOverrideHistoryEntity
OverrideTimeDate and time the override was made.UtcDateTime
CreatedDateTime
NoChargeOverrideHistoryEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReplicationCounterFromOriginCounter used when the record is replicated between systems.Integer
RetailReplicationCounter
NoNone
SalesOrderIdCustomer order that carries the charge. Blank when the charge is not on a customer order.String (20)
SalesIdBase
NoSalesTable.SalesIdChargeOverrideHistoryEntity
StoreStore number of the related retail transaction.String
RetailStoreId
NoRetailTransactionTable.storeChargeOverrideHistoryEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TerminalRegister number of the related retail transaction.String
RetailTerminalId
NoRetailTransactionTable.terminalChargeOverrideHistoryEntity
TransactionIdRetail transaction that carries the charge. Blank when it is not on a cash and carry transaction.String (44)
RetailTransactionId
NoRetailTransactionTable.transactionIdChargeOverrideHistoryEntity
UserIdPoint of sale user who made the override, when it was made there.String (25)
HcmPersonnelNumberId
NoChargeOverrideHistoryEntity

Indexes (3)

Relations (4)

Each relation joins ChargeOverrideHistory to another table on the fields shown.

  • SalesOrder → SalesTable

    Join on SalesOrderId = SalesTable.SalesId

    Many ChargeOverrideHistory records → zero or one SalesTable record

  • Transaction → RetailTransactionTable

    Join on TransactionId = RetailTransactionTable.transactionId, Channel = RetailTransactionTable.Channel, Store = RetailTransactionTable.store, Terminal = RetailTransactionTable.terminal

    Many ChargeOverrideHistory records → zero or one RetailTransactionTable record

  • OverrideUser → HcmWorker

    Join on UserId = HcmWorker.PersonnelNumber

    Many ChargeOverrideHistory records → zero or one HcmWorker record

  • AxOverrideUser → UserInfo

    Join on AxUserId = UserInfo.id

    Many 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.

Need help with ChargeOverrideHistory in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk