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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AmountTax amount for the line; currency not stated in the metadata.Real
Amount
NoNone
ChannelReference to a channel record, held as a system record ID.low confidenceInt64
RefRecId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
IsExemptYes/No flag showing whether the line is exempt from this tax.Enum
TaxExemptTax
NoYes (enum)
NoNone
IsIncludedInPriceYes/No flag showing whether the tax is inclusive, that is, already part of the price.Enum
NoYes (enum)
NoNone
OriginNumber of the location the record came from.String (50)
RetailConnDistributionLocationId
NoNone
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 value used to track replication of the record from its origin location.Integer
RetailReplicationCounter
NoNone
SaleLineNumLine number of the sales line the tax applies to.Real
RetailTransactionSalesLineNum
YesNone
StoreIdNumber of the store where the transaction took place.String
RetailStoreId
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
SysRowVersionNumberSystem row version number used to track changes to the row.Int64
SysRowVersionNumber
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxBaseAmountBase amount the tax is worked out on; currency not stated in the metadata.Real
TaxBaseCur
NoNone
TaxCodeSales tax code applied to the line.String
TaxCode
YesNone
TaxPercentageTax rate value, as a percentage.Real
TaxValue
NoNone
TerminalIdNumber of the register (terminal) used for the transaction.String
RetailTerminalId
NoNone
TransactionIdIdentifier of the retail transaction the tax line belongs to.String (44)
RetailTransactionId
YesNone

Indexes (2)

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.

Email sales@drdynamics.co.uk