Table
RetailTransactionChargeTaxTransHistory
Archived charge and tax transactions
Archived tax amounts on charges of Commerce transactions. Each row links a tax code to a markup line and a sales line, with a tax amount and flags for tax included in price and tax exempt.
- Table name
RetailTransactionChargeTaxTransHistory- 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 (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AmountTax amount; currency not stated in the metadata. | RealRetailTaxAmount | No | None | |
ChannelChannel the transaction belongs to, stored as a record ID. | Int64RetailChannelRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
IsExemptShows whether the tax is exempt (yes or no). It has no label. | EnumRetailIsExemptTaxNoYes (enum) | No | None | |
IsIncludedInPriceShows whether the tax is already included in the price (yes or no). | EnumRetailIsTaxIncludedInPriceNoYes (enum) | No | None | |
MarkupLineNumLine number of the markup (charge) line. | RealRetailTransactionMarkupLineNum | Yes | None | |
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 value used to track replication of the record. | IntegerRetailReplicationCounter | No | None | |
SaleLineNumLine number of the sales line. | RealRetailTransactionSalesLineNum | Yes | None | |
StoreIdNumber of the store where the transaction took place. | StringRetailStoreId | Yes | None | |
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 | |
TaxCodeSales tax code applied. | StringTaxCode | Yes | None | |
TerminalIdNumber of the register where the transaction took place. | StringRetailTerminalId | Yes | None | |
TransactionIdNumber of the transaction. | String (44)RetailTransactionId | Yes | None |
Indexes (2)
ChargeTaxTransIdxChannel,StoreId,TerminalId,TransactionId,SaleLineNum,MarkupLineNum,TaxCode,DataAreaId,PartitionUnique, alternate key.
transactionIdxChannel,StoreId,TerminalId,TransactionId,DataAreaId,PartitionNot unique.
Get this data out
No public entity reads from RetailTransactionChargeTaxTransHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailTransactionChargeTaxTransHistory in a report, an integration or a migration? Talk to Dr Dynamics.