Table

TaxTrans

Posted sales tax

Stores posted sales tax transactions. Each record holds the tax code, base and tax amounts in several currencies, direction, period and a link to the source document. It also links to ledger journals, invoices, tax books and registration numbers. Several country-specific fields are included.

Table name
TaxTrans
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
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoTaxTransBiEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoTaxTransBiEntityTaxTransCDREntityTaxTransCDREntity
CurrencyCodeCurrency of the tax.String (3)
CurrencyCode
NoCurrency.CurrencyCodeTaxTransBiEntityTaxTransCDREntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
EmptyTaxBaseForOutgoingTax_WYes/No flag for an empty tax base on outgoing tax.Enum
NoYesId
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
EUROTriangulationYes/No flag for EU triangulation.Enum
EUROTriangulation
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
ExchRateDiffOrigRecIdPoints to the original tax transaction for a bank exchange rate difference.Int64
RefRecId
NoTaxTransBiEntityTaxTransCDREntity
ExemptCodeExempt code applied to the tax.String
TaxExemptCode
NoTaxExemptCodeTable.ExemptCodeTaxTransBiEntityTaxTransCDREntity
ExemptTaxYes/No flag showing the tax is exempt.Enum
TaxExemptTax
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
GSTHSTTaxType_CAGST/HST tax type, used for Canada.Enum
GSTHSTTaxType_CA (enum)
NoTaxTransBiEntityTaxTransCDREntity
HeadingTableIdID of the header table linked to this tax record.Integer
RefTableId
NoTaxTransBiEntityTaxTransCDREntity
IntracomVATYes/No flag for intra-community VAT.Enum
TaxIntracomVAT
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
InventTransIdLot ID linking to the inventory transaction origin.String (20)
InventTransId
NoInventTransOrigin.InventTransIdTaxTransBiEntityTaxTransCDREntity
InvoiceIdInvoice number.String (50)
InvoiceId
NoTaxTransBiEntityTaxTransCDREntity
IsOverUnderPaymentYes/No flag for overpayment or underpayment.Enum
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
ISVFeatureSetupGuidGUID of an integration feature setup.Guid
SysGuid
NoTaxTransBiEntityTaxTransCDREntity
ISVFeatureSetupNameName of the integration feature setup.String (100)
TaxIntegrationFeatureSetupName
NoTaxTransBiEntityTaxTransCDREntity
JournalNumLedger journal batch number.String (20)
LedgerJournalId
NoLedgerJournalTable.JournalNumTaxTransBiEntityTaxTransCDREntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoTaxTransBiEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoTaxTransBiEntityTaxTransCDREntity
NoPostingSourceRegulateAmountCurActual sales tax amount for records that are not posted; currency not stated in the metadata.low confidenceReal
NoPostingSourceRegulateAmountCur
NoTaxTransBiEntity
NoPostingTaxAmountTax amount that is not posted, in the accounting currency.Real
NoPostingTaxAmount
NoTaxTransBiEntity
NoPostingTaxAmountCurTax amount that is not posted, in the tax currency.Real
NoPostingTaxAmountCur
NoTaxTransBiEntity
NoPostingTaxAmountRepTax amount that is not posted, in the reporting currency.Real
NoPostingTaxAmountRep
NoTaxTransBiEntity
OriginTaxTransRecIdPoints to the original tax transaction.Int64
RefRecId
NoTaxTransBiEntityTaxTransCDREntity
PackedExtensionsPacked container holding extension data.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.RecIdTaxTransBiEntityTaxTransCDREntity
PostponeVATYes/No flag for postponed VAT.Enum
CzPostponeVAT
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
PrintCodePrint code of the tax.String
TaxWriteCode
NoTaxTransBiEntityTaxTransCDREntity
RealizedDateDate the tax was realised.Date
TransDate
NoTaxTransBiEntityTaxTransCDREntity
ReasonReason code linked to the record.String
ReasonCode
NoReasonTable.ReasonTaxTransBiEntityTaxTransCDREntity
ReasonCommentFree-text comment on the reason.String (60)
ReasonComment
NoTaxTransBiEntityTaxTransCDREntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoTaxTransBiEntity
ReverseCharge_WYes/No flag for reverse charge.Enum
TaxReverseCharge
NoYes (enum)
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
ReverseChargeApplies_UKYes/No flag showing reverse charge applies, used for United Kingdom.Enum
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
SkipLedgerPostingYes/No flag that stops ledger entries being posted for this tax record.Enum
SkipLedgerPosting
NoYes (enum)
NoTaxTransBiEntity
SourceType of source module, such as sales order, purchase order or voucher.Enum
TaxModuleTypeId
TaxModuleType (enum)
NoTaxTransBiEntityTaxTransCDREntity
SourceBaseAmountCurBase amount in the transaction currency.Real
TaxBaseCur
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
SourceBaseAmountCurRegulatedAdjusted base amount in the transaction currency.Real
TaxBaseCur
NoTaxTransBiEntityTaxTransCDREntity
SourceCurrencyCodeCurrency of the source voucher.String (3)
CurrencyCode
NoCurrency.CurrencyCodeTaxTransBiEntityTaxTransCDREntity
SourceDocumentLinePoints to the source document line.Int64
RefRecId
NoSourceDocumentLine.RecIdTaxTransBiEntityTaxTransCDREntity
SourceRecIdSystem record ID of the source transaction line.Int64
RefRecId
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
SourceRegulateAmountCurCorrected tax amount in the transaction currency.Real
TaxRegulationAmountCur
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
SourceTableIdID of the table holding the source transaction line.Integer
RefTableId
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
SourceTaxAmountCurTax amount in the transaction currency.Real
TaxAmountCur
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
statementIdRetail statement number linked to the record.String (20)
RetailStatementId
NoRetailStatementTable.statementIdTaxTransBiEntityTaxTransCDREntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAccountTypeTax posting type, such as recoverable, payable, expense or deferred.Enum
TaxAccountingPostingAccountType (enum)
NoTaxTransBiEntityTaxTransCDREntity
TaxAmountTax amount in the accounting currency.Real
TaxAmount
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
TaxAmountCurTax amount in the tax currency.Real
TaxAmountCur
NoTaxTransBiEntityTaxTransCDREntity
TaxAmountRepTax amount in the reporting currency.Real
TaxAmountCur
NoTaxTransBiEntityTaxTransCDREntity
TaxAutogeneratedYes/No flag showing the tax was generated automatically.Enum
TaxAutoGenerated
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
TaxBaseAmountBase amount in the accounting currency.Real
TaxBase
NoTaxTransBiEntityTaxTransCDREntity
TaxBaseAmountCurBase amount in the tax currency.Real
TaxBaseCur
NoTaxTransBiEntityTaxTransCDREntity
TaxBaseAmountRepBase amount in the reporting currency.Real
TaxBaseCur
NoTaxTransBiEntityTaxTransCDREntity
TaxBaseQtyQuantity used as the tax base.Real
TaxQty
NoTaxTransBiEntityTaxTransCDREntity
TaxBookPoints to the tax book.Int64
TaxBookRecId
NoTaxBook.RecIdTaxTransBiEntityTaxTransCDREntity
TaxBookSectionPoints to the tax book section.Int64
TaxBookSectionRecId
NoTaxBookSection.RecIdTaxTransBiEntityTaxTransCDREntity
TaxCodeSales tax code of the transaction.String
TaxCode
YesTaxTable.TaxCodeBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
TaxDirectionDirection of the tax, such as receivable, payable, use tax or tax-free.Enum
TaxDirection (enum)
NoTaxTransBiEntityTaxTransCDREntity
TaxGroupSales tax group.String
TaxGroup
NoTaxGroupHeading.TaxGroupBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
TaxIDPoints to the tax registration number.Int64
TaxRegistrationRecId
NoTaxRegistration.RecIdTaxTransBiEntityTaxTransCDREntity
TaxInCostPriceNon-deductible tax amount in the transaction currency.Real
TaxAmountCur
NoTaxTransBiEntityTaxTransCDREntity
TaxInCostPriceCurNon-deductible tax amount in the tax currency.Real
TaxAmountCur
NoTaxTransBiEntityTaxTransCDREntity
TaxInCostPriceMSTNon-deductible tax amount in the accounting currency.Real
TaxAmount
NoTaxTransBiEntityTaxTransCDREntity
TaxInCostPriceRegulatedAdjusted non-deductible tax amount.Real
TaxRegulationAmountCur
NoTaxTransBiEntityTaxTransCDREntity
TaxInCostPriceRepNon-deductible tax amount in the reporting currency.Real
TaxAmountCur
NoTaxTransBiEntityTaxTransCDREntity
TaxItemGroupItem sales tax group.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupTaxTransBiEntityTaxTransCDREntity
TaxJurisdictionCodeSales tax jurisdiction code.String
TaxJurisdictionCode
NoTaxJurisdiction.TaxJurisdictionCodeTaxTransBiEntityTaxTransCDREntity
TaxObligationCompanyWhether the tax obligation sits with the destination or source company in intercompany posting.Enum
TaxObligationCompany (enum)
NoTaxTransBiEntityTaxTransCDREntity
TaxOriginOrigin of the tax record, such as sales tax, payment, cash discount or transfer.Enum
TaxOrigin (enum)
NoTaxTransBiEntityTaxTransCDREntity
TaxPeriodTax settlement period.String
TaxPeriod
NoTaxPeriodHead.TaxPeriodTaxTransBiEntityTaxTransCDREntity
TaxPrintDetailLevel of detail printed: tax codes, tax groups or none.Enum
TaxPrintDetail (enum)
NoTaxTransBiEntityTaxTransCDREntity
TaxRepCounterVersion number used in tax settlement to tell settled records from unsettled ones.Integer
TaxVersion
NoTaxTransBiEntityTaxTransCDREntity
TaxTransRefRecIdPoints to another posted tax record, used to link split records in partial payments of unrealized VAT.Int64
RefRecId
NoTaxTrans.RecIdTaxTransBiEntityTaxTransCDREntity
TaxType_MXTax type (ISR, IVA or IEPS), used for Mexico.Enum
TaxType_MX (enum)
NoTaxTransBiEntityTaxTransCDREntity
TaxValueTax rate or value.Real
TaxValue
NoBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
TransDateTransaction date.Date
TransDate
YesBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity
UnrealizedTaxYes/No flag for unrealized tax.Enum
NoYesId
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
UnrealizedTaxExtYes/No flag for an extended unrealized tax state.low confidenceEnum
NoYesId
NoYes (enum)
NoTaxTransBiEntityTaxTransCDREntity
VATExemptPctNon-deductible percentage copied from the sales tax code.Real
TaxValue
NoTaxTransBiEntityTaxTransCDREntity
VoucherVoucher number of the transaction.String (20)
Voucher
YesBusinessDocumentTaxTransactionEntityTaxTransBiEntityTaxTransCDREntity

Indexes (11)

Relations (40)

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

  • Currency_CurrencyCode → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many TaxTrans records → zero or one Currency record

  • Currency_SourceCurrencyCode → Currency

    Join on SourceCurrencyCode = Currency.CurrencyCode

    Many TaxTrans records → zero or one Currency record

  • CustAdvanceInvoiceTable → CzCustAdvanceInvoiceTable

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

    Many TaxTrans 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 TaxTrans 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 TaxTrans records → zero or one FiscalDocument_BR record

  • GeneralJournalEntry → GeneralJournalEntry

    Join on TransDate = GeneralJournalEntry.AccountingDate

    Many TaxTrans records → zero or one GeneralJournalEntry record

  • InventQualityOrderTable_IN → InventQualityOrderTable

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

    Many TaxTrans records → zero or one InventQualityOrderTable record

  • InventTransferJour_BR → InventTransferJour

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

    Many TaxTrans records → zero or one InventTransferJour record

  • InventTransOrigin → InventTransOrigin

    Join on InventTransId = InventTransOrigin.InventTransId

    Many TaxTrans records → zero or one InventTransOrigin record

  • LedgerJournalTable → LedgerJournalTable

    Join on JournalNum = LedgerJournalTable.JournalNum

    Many TaxTrans records → zero or one LedgerJournalTable record

  • LedgerJournalTrans → LedgerJournalTrans

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

    Many TaxTrans 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 TaxTrans records → zero or one PurchComplementaryInvoiceHeader record

  • PurchLine → PurchLine

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

    Many TaxTrans records → zero or one PurchLine record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Many TaxTrans records → zero or one RetailStatementTable record

  • SalesComplInvoice_BR → SalesComplementaryInvoiceHeader

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

    Many TaxTrans records → zero or one SalesComplementaryInvoiceHeader record

  • SalesLine → SalesLine

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

    Many TaxTrans records → zero or one SalesLine record

  • SourceDocumentLine → SourceDocumentLine

    Join on SourceDocumentLine = SourceDocumentLine.RecId

    Many TaxTrans records → zero or one SourceDocumentLine record

  • SubledgerVoucherGeneralJournalEntry → SubledgerVoucherGeneralJournalEntry

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

    Many TaxTrans records → zero or one SubledgerVoucherGeneralJournalEntry record

  • TaxBook → TaxBook

    Join on TaxBook = TaxBook.RecId

    Many TaxTrans records → zero or one TaxBook record

  • TaxBookSection → TaxBookSection

    Join on TaxBookSection = TaxBookSection.RecId

    Many TaxTrans records → zero or one TaxBookSection record

  • TaxExemptCodeTable → TaxExemptCodeTable

    Join on ExemptCode = TaxExemptCodeTable.ExemptCode

    Many TaxTrans records → zero or one TaxExemptCodeTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many TaxTrans records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many TaxTrans records → zero or one TaxItemGroupHeading record

  • TaxJurisdiction → TaxJurisdiction

    Join on TaxJurisdictionCode = TaxJurisdiction.TaxJurisdictionCode

    Many TaxTrans records → zero or one TaxJurisdiction record

  • TaxPeriodHead → TaxPeriodHead

    Join on TaxPeriod = TaxPeriodHead.TaxPeriod

    Many TaxTrans 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 TaxTrans record → zero or one TaxServiceTariff record

  • TaxTable → TaxTable

    Join on TaxCode = TaxTable.TaxCode

    Many TaxTrans records → exactly one TaxTable record

  • TaxTrans → TaxTrans

    Join on TaxTransRefRecId = TaxTrans.RecId

    Many TaxTrans 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 TaxTrans 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 TaxTrans records → zero or one TaxRegistration record

  • PartyTaxRegistration → TaxRegistration

    Join on PartyTaxId = TaxRegistration.RecId

    Many TaxTrans records → zero or one TaxRegistration record

  • ReasonTable → ReasonTable

    Join on Reason = ReasonTable.Reason

    Many TaxTrans records → zero or one ReasonTable record

Get this data out

Tables are not exposed directly. These public entities read from TaxTrans; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk