Table

TaxTransHistory

Posted sales tax history

Holds a history of posted sales tax records, with the tax code, group, direction and period for each. It stores base and tax amounts in several currencies: transaction, tax, accounting and reporting. Source fields link each row to the originating document line, such as an invoice, journal, statement or inventory order. There is no key defined in the metadata.

Table name
TaxTransHistory
Module
Tax
Table group
Transaction
Table type
Regular
Data per company
Yes
Configuration key
LedgerBasicSalesTax
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (85)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ArchiveServiceJobIdPurpose not clear from the metadata.low confidenceGuidNoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeCurrency of the tax amounts on the record, pointing to the Currency table.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EmptyTaxBaseForOutgoingTax_WYes/No flag for an empty tax base on outgoing tax.Enum
NoYesId
NoYes (enum)
NoNone
EUROTriangulationYes/No flag showing whether EU triangulation applies.Enum
EUROTriangulation
NoYes (enum)
NoNone
ExchRateDiffOrigRecIdPoints to the original tax record when a bank exchange rate difference arises.Int64
RefRecId
NoNone
ExemptCodeCode that explains why the tax is exempt, pointing to the sales tax exempt codes.String
TaxExemptCode
NoTaxExemptCodeTable.ExemptCodeNone
ExemptTaxYes/No flag showing whether the tax is exempt.Enum
TaxExemptTax
NoYes (enum)
NoNone
GSTHSTTaxType_CAType of GST/HST treatment, such as rebate, tax on acquisition or self-assessment, used for Canada.Enum
GSTHSTTaxType_CA (enum)
NoNone
HeadingTableIdIdentifies the table of the header record that this tax record belongs to.Integer
RefTableId
NoNone
IntracomVATYes/No flag for intra-community VAT. The help text calls it intra-company, so the exact meaning is uncertain.Enum
TaxIntracomVAT
NoYes (enum)
NoNone
InventTransIdLot ID that links the record to an inventory transaction origin.String (20)
InventTransId
NoInventTransOrigin.InventTransIdNone
InvoiceIdNumber of the invoice that the tax record relates to.String (50)
InvoiceId
NoNone
IsOverUnderPaymentYes/No flag showing whether the record comes from an overpayment or underpayment.Enum
NoYes (enum)
NoNone
ISVFeatureSetupGuidGUID that identifies a tax integration feature setup.low confidenceGuid
SysGuid
NoNone
ISVFeatureSetupNameName of the tax integration feature setup.String (100)
TaxIntegrationFeatureSetupName
NoNone
JournalNumNumber of the ledger journal that the record came from, pointing to the ledger journal table.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NoPostingSourceRegulateAmountCurActual sales tax amount for a record that is not posted to the ledger.Real
NoPostingSourceRegulateAmountCur
NoNone
NoPostingTaxAmountTax amount in the accounting currency for a record that is not posted to the ledger.Real
NoPostingTaxAmount
NoNone
NoPostingTaxAmountCurTax amount in the tax currency for a record that is not posted to the ledger.Real
NoPostingTaxAmountCur
NoNone
NoPostingTaxAmountRepTax amount in the reporting currency for a record that is not posted to the ledger.Real
NoPostingTaxAmountRep
NoNone
OriginTaxTransRecIdPoints to the original tax record that this one came from.Int64
RefRecId
NoNone
PackedExtensionsContainer that stores extension data in packed form.Container
SysExtensionSerializerPackedContainer
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartyTaxIdPoints to the tax registration of the counterparty.Int64
RefRecId
NoTaxRegistration.RecIdNone
PostponeVATYes/No flag showing whether the VAT is postponed.Enum
CzPostponeVAT
NoYes (enum)
NoNone
PrintCodeCode used when printing the tax on documents or reports.String
TaxWriteCode
NoNone
RealizedDateDate on which the tax was realized.Date
TransDate
NoNone
ReasonReason code attached to the tax record.String
ReasonCode
NoNone
ReasonCommentFree-text comment that explains the reason code.String (60)
ReasonComment
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
ReverseCharge_WYes/No flag showing whether reverse charge applies.Enum
TaxReverseCharge
NoYes (enum)
NoNone
ReverseChargeApplies_UKYes/No flag that appears to show whether reverse charge applies, used for United Kingdom.low confidenceEnum
NoYes (enum)
NoNone
SkipLedgerPostingYes/No flag that stops ledger entries from being posted for this tax record.Enum
SkipLedgerPosting
NoYes (enum)
NoNone
SourceKind of source module the tax came from, such as sales order, purchase order, voucher or project.Enum
TaxModuleTypeId
TaxModuleType (enum)
NoNone
SourceBaseAmountCurTax base amount in the transaction currency.Real
TaxBaseCur
NoNone
SourceBaseAmountCurRegulatedAdjusted tax base amount in the transaction currency.Real
TaxBaseCur
NoNone
SourceCurrencyCodeCurrency code of the source voucher or transaction, pointing to the Currency table.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
SourceDocumentLinePoints to the source document line that the tax record came from, by system record ID.Int64
RefRecId
NoSourceDocumentLine.RecIdNone
SourceRecIdSystem record ID of the source line linked to this tax record. It is paired with the source table ID.Int64
RefRecId
NoNone
SourceRegulateAmountCurCorrected tax amount in the transaction currency.Real
TaxRegulationAmountCur
NoNone
SourceTableIdIdentifies the table of the source line, for example an invoice line table.Integer
RefTableId
NoNone
SourceTaxAmountCurTax amount in the transaction currency.Real
TaxAmountCur
NoNone
statementIdNumber of the retail statement linked to the record, pointing to the statements table.String (20)
RetailStatementId
NoRetailStatementTable.statementIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAccountTypeTax posting type, such as recoverable, payable, expense, deferred or interim.Enum
TaxAccountingPostingAccountType (enum)
NoNone
TaxAmountTax amount in the accounting currency.Real
TaxAmount
NoNone
TaxAmountCurTax amount in the tax currency.Real
TaxAmountCur
NoNone
TaxAmountRepTax amount in the reporting currency.Real
TaxAmountCur
NoNone
TaxAutogeneratedYes/No flag showing whether the tax line was generated automatically.Enum
TaxAutoGenerated
NoYes (enum)
NoNone
TaxBaseAmountBase amount on which tax is charged, in the accounting currency.Real
TaxBase
NoNone
TaxBaseAmountCurBase amount on which tax is charged, in the tax currency.Real
TaxBaseCur
NoNone
TaxBaseAmountRepBase amount on which tax is charged, in the reporting currency.Real
TaxBaseCur
NoNone
TaxBaseQtyQuantity used as the tax base.Real
TaxQty
NoNone
TaxBookPoints to the tax book record that holds this tax.Int64
TaxBookRecId
NoTaxBook.RecIdNone
TaxBookSectionPoints to the section of the tax book that applies.Int64
TaxBookSectionRecId
NoTaxBookSection.RecIdNone
TaxCodeSales tax code of the record, pointing to the sales tax codes table.String
TaxCode
YesTaxTable.TaxCodeNone
TaxDirectionDirection of the tax, such as receivable, payable, use tax or tax-free sale.Enum
TaxDirection (enum)
NoNone
TaxGroupSales tax group of the record, pointing to the sales tax group table.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
TaxIDPoints to the tax registration number of the record.Int64
TaxRegistrationRecId
NoTaxRegistration.RecIdNone
TaxInCostPriceNondeductible sales tax amount in the transaction currency.Real
TaxAmountCur
NoNone
TaxInCostPriceCurNondeductible sales tax amount in the tax currency.Real
TaxAmountCur
NoNone
TaxInCostPriceMSTNondeductible sales tax amount in the accounting currency.Real
TaxAmount
NoNone
TaxInCostPriceRegulatedAdjusted nondeductible sales tax amount in the transaction currency.Real
TaxRegulationAmountCur
NoNone
TaxInCostPriceRepNondeductible sales tax amount in the reporting currency.Real
TaxAmountCur
NoNone
TaxItemGroupItem sales tax group of the record, pointing to the item sales tax group table.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
TaxJurisdictionCodeCode of the sales tax jurisdiction that applies, pointing to the jurisdictions table.String
TaxJurisdictionCode
NoTaxJurisdiction.TaxJurisdictionCodeNone
TaxObligationCompanyShows whether the tax obligation sits with the destination or source company in intercompany tax posting.Enum
TaxObligationCompany (enum)
NoNone
TaxOriginOrigin of the tax record, such as sales tax, payment, cash discount, offset or transfer.Enum
TaxOrigin (enum)
NoNone
TaxPeriodSales tax period the record belongs to, pointing to the tax period table.String
TaxPeriod
NoTaxPeriodHead.TaxPeriodNone
TaxPrintDetailLevel of detail used when printing tax: by tax code, by tax group or none.Enum
TaxPrintDetail (enum)
NoNone
TaxRepCounterVersion number used to tell whether the record is already settled. It may also relate to tax report corrections.Integer
TaxVersion
NoNone
TaxTransRefRecIdPoints to a posted sales tax record. It helps trace the source of split partial invoices for unrealized VAT.Int64
RefRecId
NoTaxTrans.RecIdNone
TaxType_MXType of tax, such as ISR, IVA or IEPS, used for Mexico.Enum
TaxType_MX (enum)
NoNone
TaxValueTax rate or value applied.Real
TaxValue
NoNone
TransDateTransaction date of the tax record.Date
TransDate
YesNone
UnrealizedTaxYes/No flag showing whether the tax is unrealized.Enum
NoYesId
NoYes (enum)
NoNone
UnrealizedTaxExtYes/No flag for an extended unrealized tax state. The exact meaning is unclear.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
VATExemptPctPercentage of the tax that is nondeductible, taken from the sales tax code when the related feature is on.Real
TaxValue
NoNone
VoucherVoucher number linked to the tax record.String (20)
Voucher
YesNone

Indexes (1)

Relations (39)

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

  • Currency_CurrencyCode → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many TaxTransHistory records → zero or one Currency record

  • Currency_SourceCurrencyCode → Currency

    Join on SourceCurrencyCode = Currency.CurrencyCode

    Many TaxTransHistory records → zero or one Currency record

  • CustAdvanceInvoiceTable → CzCustAdvanceInvoiceTable

    Join on Voucher = CzCustAdvanceInvoiceTable.Voucher, TransDate = CzCustAdvanceInvoiceTable.InvoiceDate

    Many TaxTransHistory records → zero or one CzCustAdvanceInvoiceTable record

  • CustInvoiceJour → CustInvoiceJour

    Join on TransDate = CustInvoiceJour.InvoiceDate, Voucher = CustInvoiceJour.LedgerVoucher

    Cardinality not set in the metadata.

  • CustOverdueVATJournalTable_W → CustOverdueVATJournalTable_W

    Join on TransDate = CustOverdueVATJournalTable_W.TransDate, Voucher = CustOverdueVATJournalTable_W.LedgerVoucher

    Many TaxTransHistory records → exactly one CustOverdueVATJournalTable_W record

  • CustTrans → CustTrans

    Join on TransDate = CustTrans.TransDate, Voucher = CustTrans.Voucher

    Cardinality not set in the metadata.

  • FiscalDocument_BR → FiscalDocument_BR

    Join on TransDate = FiscalDocument_BR.AccountingDate, Voucher = FiscalDocument_BR.Voucher

    Many TaxTransHistory records → zero or one FiscalDocument_BR record

  • GeneralJournalEntry → GeneralJournalEntry

    Join on TransDate = GeneralJournalEntry.AccountingDate

    Many TaxTransHistory records → zero or one GeneralJournalEntry record

  • InventQualityOrderTable_IN → InventQualityOrderTable

    Join on SourceTableId = InventQualityOrderTable.TableId, SourceRecId = InventQualityOrderTable.RecId

    Many TaxTransHistory records → zero or one InventQualityOrderTable record

  • InventTransferJour_BR → InventTransferJour

    Join on TransDate = InventTransferJour.TransDate, Voucher = InventTransferJour.VoucherId

    Many TaxTransHistory records → zero or one InventTransferJour record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Many TaxTransHistory records → zero or one InventTransOrigin record

  • LedgerJournalTable → LedgerJournalTable

    Join on JournalNum = LedgerJournalTable.JournalNum

    Many TaxTransHistory records → zero or one LedgerJournalTable record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on SourceTableId = LedgerJournalTrans.TableId, SourceRecId = LedgerJournalTrans.RecId

    Many TaxTransHistory records → zero or one LedgerJournalTrans record

  • ProjInvoiceJour → ProjInvoiceJour

    Join on Voucher = ProjInvoiceJour.LedgerVoucher, TransDate = ProjInvoiceJour.InvoiceDate

    Cardinality not set in the metadata.

  • PurchComplInvoice_BR → PurchComplementaryInvoiceHeader

    Join on Voucher = PurchComplementaryInvoiceHeader.LedgerVoucher, TransDate = PurchComplementaryInvoiceHeader.TransDate

    Many TaxTransHistory records → zero or one PurchComplementaryInvoiceHeader record

  • PurchLine → PurchLine

    Join on SourceTableId = PurchLine.TableId, SourceRecId = PurchLine.RecId

    Many TaxTransHistory records → zero or one PurchLine record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Many TaxTransHistory records → zero or one RetailStatementTable record

  • SalesComplInvoice_BR → SalesComplementaryInvoiceHeader

    Join on Voucher = SalesComplementaryInvoiceHeader.LedgerVoucher, TransDate = SalesComplementaryInvoiceHeader.DocumentDate

    Many TaxTransHistory records → zero or one SalesComplementaryInvoiceHeader record

  • SalesLine → SalesLine

    Join on SourceRecId = SalesLine.RecId, SourceTableId = SalesLine.TableId

    Many TaxTransHistory records → zero or one SalesLine record

  • SourceDocumentLine → SourceDocumentLine

    Join on SourceDocumentLine = SourceDocumentLine.RecId

    Many TaxTransHistory records → zero or one SourceDocumentLine record

  • SubledgerVoucherGeneralJournalEntry → SubledgerVoucherGeneralJournalEntry

    Join on dataAreaId = SubledgerVoucherGeneralJournalEntry.VoucherDataAreaId, Voucher = SubledgerVoucherGeneralJournalEntry.Voucher

    Many TaxTransHistory records → zero or one SubledgerVoucherGeneralJournalEntry record

  • TaxBook → TaxBook

    Join on TaxBook = TaxBook.RecId

    Many TaxTransHistory records → zero or one TaxBook record

  • TaxBookSection → TaxBookSection

    Join on TaxBookSection = TaxBookSection.RecId

    Many TaxTransHistory records → zero or one TaxBookSection record

  • TaxExemptCodeTable → TaxExemptCodeTable

    Join on ExemptCode = TaxExemptCodeTable.ExemptCode

    Many TaxTransHistory records → zero or one TaxExemptCodeTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many TaxTransHistory records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many TaxTransHistory records → zero or one TaxItemGroupHeading record

  • TaxJurisdiction → TaxJurisdiction

    Join on TaxJurisdictionCode = TaxJurisdiction.TaxJurisdictionCode

    Many TaxTransHistory records → zero or one TaxJurisdiction record

  • TaxPeriodHead → TaxPeriodHead

    Join on TaxPeriod = TaxPeriodHead.TaxPeriod

    Many TaxTransHistory records → zero or one TaxPeriodHead record

  • TaxReportAdjustmentTrans → TaxReportAdjustmentTrans

    Join on TaxRepCounter = TaxReportAdjustmentTrans.TaxVersion, TaxPeriod = TaxReportAdjustmentTrans.TaxPeriod

    Cardinality not set in the metadata.

  • TaxReportPeriod → TaxReportPeriod

    Join on TaxPeriod = TaxReportPeriod.TaxPeriod

    Cardinality not set in the metadata.

  • TaxReportVoucher → TaxReportVoucher

    Join on TaxRepCounter = TaxReportVoucher.TaxRepCounter, TaxPeriod = TaxReportVoucher.TaxPeriod

    Cardinality not set in the metadata.

  • TaxServiceTariff → TaxServiceTariff

    Join on RecId = TaxServiceTariff.ParentRecId, TableId = TaxServiceTariff.ParentTableId

    Zero or one TaxTransHistory record → zero or one TaxServiceTariff record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many TaxTransHistory records → exactly one TaxTable record

  • TaxTrans → TaxTrans

    Join on TaxTransRefRecId = TaxTrans.RecId

    Many TaxTransHistory records → zero or one TaxTrans record

  • VendInvoiceJour → VendInvoiceJour

    Join on TransDate = VendInvoiceJour.InvoiceDate, Voucher = VendInvoiceJour.LedgerVoucher

    Cardinality not set in the metadata.

  • VendOverdueVATJournalTable_W → VendOverdueVATJournalTable_W

    Join on TransDate = VendOverdueVATJournalTable_W.TransDate, Voucher = VendOverdueVATJournalTable_W.LedgerVoucher

    Many TaxTransHistory records → exactly one VendOverdueVATJournalTable_W record

  • VendTrans → VendTrans

    Join on TransDate = VendTrans.TransDate, Voucher = VendTrans.Voucher

    Cardinality not set in the metadata.

  • TaxRegistration → TaxRegistration

    Join on TaxID = TaxRegistration.RecId

    Many TaxTransHistory records → zero or one TaxRegistration record

  • PartyTaxRegistration → TaxRegistration

    Join on PartyTaxId = TaxRegistration.RecId

    Many TaxTransHistory records → zero or one TaxRegistration record

Get this data out

No public entity reads from TaxTransHistory. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk