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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ArchiveServiceJobIdPurpose not clear from the metadata.low confidence | Guid | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeCurrency of the tax amounts on the record, pointing to the Currency table. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
EmptyTaxBaseForOutgoingTax_WYes/No flag for an empty tax base on outgoing tax. | EnumNoYesIdNoYes (enum) | No | None | |
EUROTriangulationYes/No flag showing whether EU triangulation applies. | EnumEUROTriangulationNoYes (enum) | No | None | |
ExchRateDiffOrigRecIdPoints to the original tax record when a bank exchange rate difference arises. | Int64RefRecId | No | None | |
ExemptCodeCode that explains why the tax is exempt, pointing to the sales tax exempt codes. | StringTaxExemptCode | No | TaxExemptCodeTable.ExemptCode | None |
ExemptTaxYes/No flag showing whether the tax is exempt. | EnumTaxExemptTaxNoYes (enum) | No | None | |
GSTHSTTaxType_CAType of GST/HST treatment, such as rebate, tax on acquisition or self-assessment, used for Canada. | EnumGSTHSTTaxType_CA (enum) | No | None | |
HeadingTableIdIdentifies the table of the header record that this tax record belongs to. | IntegerRefTableId | No | None | |
IntracomVATYes/No flag for intra-community VAT. The help text calls it intra-company, so the exact meaning is uncertain. | EnumTaxIntracomVATNoYes (enum) | No | None | |
InventTransIdLot ID that links the record to an inventory transaction origin. | String (20)InventTransId | No | InventTransOrigin.InventTransId | None |
InvoiceIdNumber of the invoice that the tax record relates to. | String (50)InvoiceId | No | None | |
IsOverUnderPaymentYes/No flag showing whether the record comes from an overpayment or underpayment. | EnumNoYes (enum) | No | None | |
ISVFeatureSetupGuidGUID that identifies a tax integration feature setup.low confidence | GuidSysGuid | No | None | |
ISVFeatureSetupNameName of the tax integration feature setup. | String (100)TaxIntegrationFeatureSetupName | No | None | |
JournalNumNumber of the ledger journal that the record came from, pointing to the ledger journal table. | String (20)LedgerJournalId | No | LedgerJournalTable.JournalNum | None |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NoPostingSourceRegulateAmountCurActual sales tax amount for a record that is not posted to the ledger. | RealNoPostingSourceRegulateAmountCur | No | None | |
NoPostingTaxAmountTax amount in the accounting currency for a record that is not posted to the ledger. | RealNoPostingTaxAmount | No | None | |
NoPostingTaxAmountCurTax amount in the tax currency for a record that is not posted to the ledger. | RealNoPostingTaxAmountCur | No | None | |
NoPostingTaxAmountRepTax amount in the reporting currency for a record that is not posted to the ledger. | RealNoPostingTaxAmountRep | No | None | |
OriginTaxTransRecIdPoints to the original tax record that this one came from. | Int64RefRecId | No | None | |
PackedExtensionsContainer that stores extension data in packed form. | ContainerSysExtensionSerializerPackedContainer | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PartyTaxIdPoints to the tax registration of the counterparty. | Int64RefRecId | No | TaxRegistration.RecId | None |
PostponeVATYes/No flag showing whether the VAT is postponed. | EnumCzPostponeVATNoYes (enum) | No | None | |
PrintCodeCode used when printing the tax on documents or reports. | StringTaxWriteCode | No | None | |
RealizedDateDate on which the tax was realized. | DateTransDate | No | None | |
ReasonReason code attached to the tax record. | StringReasonCode | No | None | |
ReasonCommentFree-text comment that explains the reason code. | String (60)ReasonComment | 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 | |
ReverseCharge_WYes/No flag showing whether reverse charge applies. | EnumTaxReverseChargeNoYes (enum) | No | None | |
ReverseChargeApplies_UKYes/No flag that appears to show whether reverse charge applies, used for United Kingdom.low confidence | EnumNoYes (enum) | No | None | |
SkipLedgerPostingYes/No flag that stops ledger entries from being posted for this tax record. | EnumSkipLedgerPostingNoYes (enum) | No | None | |
SourceKind of source module the tax came from, such as sales order, purchase order, voucher or project. | EnumTaxModuleTypeIdTaxModuleType (enum) | No | None | |
SourceBaseAmountCurTax base amount in the transaction currency. | RealTaxBaseCur | No | None | |
SourceBaseAmountCurRegulatedAdjusted tax base amount in the transaction currency. | RealTaxBaseCur | No | None | |
SourceCurrencyCodeCurrency code of the source voucher or transaction, pointing to the Currency table. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
SourceDocumentLinePoints to the source document line that the tax record came from, by system record ID. | Int64RefRecId | No | SourceDocumentLine.RecId | None |
SourceRecIdSystem record ID of the source line linked to this tax record. It is paired with the source table ID. | Int64RefRecId | No | None | |
SourceRegulateAmountCurCorrected tax amount in the transaction currency. | RealTaxRegulationAmountCur | No | None | |
SourceTableIdIdentifies the table of the source line, for example an invoice line table. | IntegerRefTableId | No | None | |
SourceTaxAmountCurTax amount in the transaction currency. | RealTaxAmountCur | No | None | |
statementIdNumber of the retail statement linked to the record, pointing to the statements table. | String (20)RetailStatementId | No | RetailStatementTable.statementId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAccountTypeTax posting type, such as recoverable, payable, expense, deferred or interim. | EnumTaxAccountingPostingAccountType (enum) | No | None | |
TaxAmountTax amount in the accounting currency. | RealTaxAmount | No | None | |
TaxAmountCurTax amount in the tax currency. | RealTaxAmountCur | No | None | |
TaxAmountRepTax amount in the reporting currency. | RealTaxAmountCur | No | None | |
TaxAutogeneratedYes/No flag showing whether the tax line was generated automatically. | EnumTaxAutoGeneratedNoYes (enum) | No | None | |
TaxBaseAmountBase amount on which tax is charged, in the accounting currency. | RealTaxBase | No | None | |
TaxBaseAmountCurBase amount on which tax is charged, in the tax currency. | RealTaxBaseCur | No | None | |
TaxBaseAmountRepBase amount on which tax is charged, in the reporting currency. | RealTaxBaseCur | No | None | |
TaxBaseQtyQuantity used as the tax base. | RealTaxQty | No | None | |
TaxBookPoints to the tax book record that holds this tax. | Int64TaxBookRecId | No | TaxBook.RecId | None |
TaxBookSectionPoints to the section of the tax book that applies. | Int64TaxBookSectionRecId | No | TaxBookSection.RecId | None |
TaxCodeSales tax code of the record, pointing to the sales tax codes table. | StringTaxCode | Yes | TaxTable.TaxCode | None |
TaxDirectionDirection of the tax, such as receivable, payable, use tax or tax-free sale. | EnumTaxDirection (enum) | No | None | |
TaxGroupSales tax group of the record, pointing to the sales tax group table. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
TaxIDPoints to the tax registration number of the record. | Int64TaxRegistrationRecId | No | TaxRegistration.RecId | None |
TaxInCostPriceNondeductible sales tax amount in the transaction currency. | RealTaxAmountCur | No | None | |
TaxInCostPriceCurNondeductible sales tax amount in the tax currency. | RealTaxAmountCur | No | None | |
TaxInCostPriceMSTNondeductible sales tax amount in the accounting currency. | RealTaxAmount | No | None | |
TaxInCostPriceRegulatedAdjusted nondeductible sales tax amount in the transaction currency. | RealTaxRegulationAmountCur | No | None | |
TaxInCostPriceRepNondeductible sales tax amount in the reporting currency. | RealTaxAmountCur | No | None | |
TaxItemGroupItem sales tax group of the record, pointing to the item sales tax group table. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
TaxJurisdictionCodeCode of the sales tax jurisdiction that applies, pointing to the jurisdictions table. | StringTaxJurisdictionCode | No | TaxJurisdiction.TaxJurisdictionCode | None |
TaxObligationCompanyShows whether the tax obligation sits with the destination or source company in intercompany tax posting. | EnumTaxObligationCompany (enum) | No | None | |
TaxOriginOrigin of the tax record, such as sales tax, payment, cash discount, offset or transfer. | EnumTaxOrigin (enum) | No | None | |
TaxPeriodSales tax period the record belongs to, pointing to the tax period table. | StringTaxPeriod | No | TaxPeriodHead.TaxPeriod | None |
TaxPrintDetailLevel of detail used when printing tax: by tax code, by tax group or none. | EnumTaxPrintDetail (enum) | No | None | |
TaxRepCounterVersion number used to tell whether the record is already settled. It may also relate to tax report corrections. | IntegerTaxVersion | No | None | |
TaxTransRefRecIdPoints to a posted sales tax record. It helps trace the source of split partial invoices for unrealized VAT. | Int64RefRecId | No | TaxTrans.RecId | None |
TaxType_MXType of tax, such as ISR, IVA or IEPS, used for Mexico. | EnumTaxType_MX (enum) | No | None | |
TaxValueTax rate or value applied. | RealTaxValue | No | None | |
TransDateTransaction date of the tax record. | DateTransDate | Yes | None | |
UnrealizedTaxYes/No flag showing whether the tax is unrealized. | EnumNoYesIdNoYes (enum) | No | None | |
UnrealizedTaxExtYes/No flag for an extended unrealized tax state. The exact meaning is unclear.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
VATExemptPctPercentage of the tax that is nondeductible, taken from the sales tax code when the related feature is on. | RealTaxValue | No | None | |
VoucherVoucher number linked to the tax record. | String (20)Voucher | Yes | None |
Indexes (1)
VoucherDateIdxVoucher,TransDate,TaxOrigin,TaxCode,TaxDirectionNot unique.
Relations (39)
Each relation joins TaxTransHistory to another table on the fields shown.
Currency_CurrencyCode→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany TaxTransHistory records → zero or one Currency record
Currency_SourceCurrencyCode→CurrencyJoin on
SourceCurrencyCode = Currency.CurrencyCodeMany TaxTransHistory records → zero or one Currency record
CustAdvanceInvoiceTable→CzCustAdvanceInvoiceTableJoin on
Voucher = CzCustAdvanceInvoiceTable.Voucher,TransDate = CzCustAdvanceInvoiceTable.InvoiceDateMany TaxTransHistory records → zero or one CzCustAdvanceInvoiceTable record
CustInvoiceJour→CustInvoiceJourJoin on
TransDate = CustInvoiceJour.InvoiceDate,Voucher = CustInvoiceJour.LedgerVoucherCardinality not set in the metadata.
CustOverdueVATJournalTable_W→CustOverdueVATJournalTable_WJoin on
TransDate = CustOverdueVATJournalTable_W.TransDate,Voucher = CustOverdueVATJournalTable_W.LedgerVoucherMany TaxTransHistory records → exactly one CustOverdueVATJournalTable_W record
CustTrans→CustTransJoin on
TransDate = CustTrans.TransDate,Voucher = CustTrans.VoucherCardinality not set in the metadata.
FiscalDocument_BR→FiscalDocument_BRJoin on
TransDate = FiscalDocument_BR.AccountingDate,Voucher = FiscalDocument_BR.VoucherMany TaxTransHistory records → zero or one FiscalDocument_BR record
GeneralJournalEntry→GeneralJournalEntryJoin on
TransDate = GeneralJournalEntry.AccountingDateMany TaxTransHistory records → zero or one GeneralJournalEntry record
InventQualityOrderTable_IN→InventQualityOrderTableJoin on
SourceTableId = InventQualityOrderTable.TableId,SourceRecId = InventQualityOrderTable.RecIdMany TaxTransHistory records → zero or one InventQualityOrderTable record
InventTransferJour_BR→InventTransferJourJoin on
TransDate = InventTransferJour.TransDate,Voucher = InventTransferJour.VoucherIdMany TaxTransHistory records → zero or one InventTransferJour record
InventTransOrigin→InventTransOriginJoin on
InventTransId = InventTransOrigin.InventTransIdMany TaxTransHistory records → zero or one InventTransOrigin record
LedgerJournalTable→LedgerJournalTableJoin on
JournalNum = LedgerJournalTable.JournalNumMany TaxTransHistory records → zero or one LedgerJournalTable record
LedgerJournalTrans→LedgerJournalTransJoin on
SourceTableId = LedgerJournalTrans.TableId,SourceRecId = LedgerJournalTrans.RecIdMany TaxTransHistory records → zero or one LedgerJournalTrans record
ProjInvoiceJour→ProjInvoiceJourJoin on
Voucher = ProjInvoiceJour.LedgerVoucher,TransDate = ProjInvoiceJour.InvoiceDateCardinality not set in the metadata.
PurchComplInvoice_BR→PurchComplementaryInvoiceHeaderJoin on
Voucher = PurchComplementaryInvoiceHeader.LedgerVoucher,TransDate = PurchComplementaryInvoiceHeader.TransDateMany TaxTransHistory records → zero or one PurchComplementaryInvoiceHeader record
PurchLine→PurchLineJoin on
SourceTableId = PurchLine.TableId,SourceRecId = PurchLine.RecIdMany TaxTransHistory records → zero or one PurchLine record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdMany TaxTransHistory records → zero or one RetailStatementTable record
SalesComplInvoice_BR→SalesComplementaryInvoiceHeaderJoin on
Voucher = SalesComplementaryInvoiceHeader.LedgerVoucher,TransDate = SalesComplementaryInvoiceHeader.DocumentDateMany TaxTransHistory records → zero or one SalesComplementaryInvoiceHeader record
SalesLine→SalesLineJoin on
SourceRecId = SalesLine.RecId,SourceTableId = SalesLine.TableIdMany TaxTransHistory records → zero or one SalesLine record
SourceDocumentLine→SourceDocumentLineJoin on
SourceDocumentLine = SourceDocumentLine.RecIdMany TaxTransHistory records → zero or one SourceDocumentLine record
SubledgerVoucherGeneralJournalEntry→SubledgerVoucherGeneralJournalEntryJoin on
dataAreaId = SubledgerVoucherGeneralJournalEntry.VoucherDataAreaId,Voucher = SubledgerVoucherGeneralJournalEntry.VoucherMany TaxTransHistory records → zero or one SubledgerVoucherGeneralJournalEntry record
TaxBook→TaxBookJoin on
TaxBook = TaxBook.RecIdMany TaxTransHistory records → zero or one TaxBook record
TaxBookSection→TaxBookSectionJoin on
TaxBookSection = TaxBookSection.RecIdMany TaxTransHistory records → zero or one TaxBookSection record
TaxExemptCodeTable→TaxExemptCodeTableJoin on
ExemptCode = TaxExemptCodeTable.ExemptCodeMany TaxTransHistory records → zero or one TaxExemptCodeTable record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany TaxTransHistory records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany TaxTransHistory records → zero or one TaxItemGroupHeading record
TaxJurisdiction→TaxJurisdictionJoin on
TaxJurisdictionCode = TaxJurisdiction.TaxJurisdictionCodeMany TaxTransHistory records → zero or one TaxJurisdiction record
TaxPeriodHead→TaxPeriodHeadJoin on
TaxPeriod = TaxPeriodHead.TaxPeriodMany TaxTransHistory records → zero or one TaxPeriodHead record
TaxReportAdjustmentTrans→TaxReportAdjustmentTransJoin on
TaxRepCounter = TaxReportAdjustmentTrans.TaxVersion,TaxPeriod = TaxReportAdjustmentTrans.TaxPeriodCardinality not set in the metadata.
TaxReportPeriod→TaxReportPeriodJoin on
TaxPeriod = TaxReportPeriod.TaxPeriodCardinality not set in the metadata.
TaxReportVoucher→TaxReportVoucherJoin on
TaxRepCounter = TaxReportVoucher.TaxRepCounter,TaxPeriod = TaxReportVoucher.TaxPeriodCardinality not set in the metadata.
TaxServiceTariff→TaxServiceTariffJoin on
RecId = TaxServiceTariff.ParentRecId,TableId = TaxServiceTariff.ParentTableIdZero or one TaxTransHistory record → zero or one TaxServiceTariff record
TaxTable→TaxTableJoin on
TaxCode = TaxTable.TaxCodeMany TaxTransHistory records → exactly one TaxTable record
TaxTrans→TaxTransJoin on
TaxTransRefRecId = TaxTrans.RecIdMany TaxTransHistory records → zero or one TaxTrans record
VendInvoiceJour→VendInvoiceJourJoin on
TransDate = VendInvoiceJour.InvoiceDate,Voucher = VendInvoiceJour.LedgerVoucherCardinality not set in the metadata.
VendOverdueVATJournalTable_W→VendOverdueVATJournalTable_WJoin on
TransDate = VendOverdueVATJournalTable_W.TransDate,Voucher = VendOverdueVATJournalTable_W.LedgerVoucherMany TaxTransHistory records → exactly one VendOverdueVATJournalTable_W record
VendTrans→VendTransJoin on
TransDate = VendTrans.TransDate,Voucher = VendTrans.VoucherCardinality not set in the metadata.
TaxRegistration→TaxRegistrationJoin on
TaxID = TaxRegistration.RecIdMany TaxTransHistory records → zero or one TaxRegistration record
PartyTaxRegistration→TaxRegistrationJoin on
PartyTaxId = TaxRegistration.RecIdMany 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.