Table
RetailTransactionTaxTransHistory
Archived tax transactions
Archived tax lines from retail point-of-sale transactions. Each row links to a transaction through store, register and transaction number, and to a sales line by line number. It has no defined key. It holds the tax code, rate, base amount and tax amount.
- Table name
RetailTransactionTaxTransHistory- 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 (20)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AmountTax amount for the line; currency not stated in the metadata. | RealAmount | No | None | |
ChannelReference to a channel record, held as a system record ID.low confidence | Int64RefRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
IsExemptYes/No flag showing whether the line is exempt from this tax. | EnumTaxExemptTaxNoYes (enum) | No | None | |
IsIncludedInPriceYes/No flag showing whether the tax is inclusive, that is, already part of the price. | EnumNoYes (enum) | No | None | |
OriginNumber of the location the record came from. | String (50)RetailConnDistributionLocationId | No | 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 from its origin location. | IntegerRetailReplicationCounter | No | None | |
SaleLineNumLine number of the sales line the tax applies to. | RealRetailTransactionSalesLineNum | Yes | None | |
StoreIdNumber of the store where the transaction took place. | StringRetailStoreId | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
SysRowVersionNumberSystem row version number used to track changes to the row. | Int64SysRowVersionNumber | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxBaseAmountBase amount the tax is worked out on; currency not stated in the metadata. | RealTaxBaseCur | No | None | |
TaxCodeSales tax code applied to the line. | StringTaxCode | Yes | None | |
TaxPercentageTax rate value, as a percentage. | RealTaxValue | No | None | |
TerminalIdNumber of the register (terminal) used for the transaction. | StringRetailTerminalId | No | None | |
TransactionIdIdentifier of the retail transaction the tax line belongs to. | String (44)RetailTransactionId | Yes | None |
Indexes (2)
TaxTransIdxChannel,TerminalId,StoreId,TransactionId,SaleLineNum,TaxCode,DataAreaId,PartitionUnique, alternate key.
transactionIdxChannel,TerminalId,StoreId,TransactionId,DataAreaId,PartitionNot unique.
Get this data out
No public entity reads from RetailTransactionTaxTransHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailTransactionTaxTransHistory in a report, an integration or a migration? Talk to Dr Dynamics.