Table

TaxTransHistory_W

Posted sales tax history

Extra fields for posted sales tax history records that apply to several countries, mainly India, Poland and Mexico. It holds items such as tax components, registration numbers, VAT report date codes and reverse charge data. It links to the main tax history record and several country tables.

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

Fields (34)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AbatementAmount_INAbatement amount, used for India.Real
TaxAmount
NoNone
Addressing_PLAddress text, used for Poland.String (250)
Addressing
NoNone
ApplyExcise_INYes/No flag showing whether excise applies, used for India.Enum
NoYesId
NoYes (enum)
NoNone
ClaimPercentage_INPercentage that can be claimed, used for India.Real
Percent
NoNone
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
CustomsDuty_INCustoms duty amount, used for India.Real
CustomsAmount_IN
NoNone
CustVendName_PLName of the customer or vendor, used for Poland.String (160)
PlCustVendName
NoNone
CustVendTransPostingLogTaxOrigin_WOrigin tax transaction for tax settled through the transaction posting log.Int64
TaxTransRecId
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DocumentDate_PLDate of the document, used for Poland and the Czech Republic.Date
DocumentDate
NoNone
ExciseAmount_PLExcise duty amount, used for Poland.Real
PlExciseAmount
NoNone
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
OffsetRecId_MXRecord ID of the offset record, used for Mexico. The table it points to is not fixed.Int64
RefRecId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PromissoryNoteInvoice_MXInvoice number for a promissory note, used for Mexico.String (50)
InvoiceId
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
ReversedTaxTransRecId_WPoints to the posted tax history record that was reversed, used for Poland.Int64
TaxTransRefRecId
NoTaxTransHistory.RecIdNone
ServiceTaxReverseChargeOriginAmount_INOriginal corrected amount for service tax reverse charge, used for India.Real
TaxRegulationAmountCur
NoNone
ServiceTaxReverseChargePercentage_INPercentage for service tax reverse charge, used for India.Real
ServiceTaxRevPercentage_IN
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAmountCustoms_INTax amount in the customs currency, used for India.Real
TaxAmount
NoNone
TaxComponentTable_INPoints to the tax component record, used for India.Int64
RefRecId
NoTaxComponentTable_IN.RecIdNone
TaxPeriodPaymentCode_PLCode of the VAT report date, used for Poland.String
PlTaxPeriodPaymentCode
NoPlTaxDueTable.TaxPeriodPaymentCodeNone
TaxRegistrationNumberTable_INPoints to the tax registration number record, used for India.Int64
RefRecId
NoTaxRegistrationNumbers_IN.RecIdNone
TaxTransPoints to the posted sales tax history record that these details belong to.Int64
TaxTransRefRecId
NoTaxTransHistory.RecIdNone
TaxTransRefRecId_INPoints to the referenced posted tax history record, used for India.Int64
RefRecId
NoTaxTransHistory.RecIdNone
TaxType_INKind of tax, such as VAT, excise, service tax, customs or GST, used for India.Enum
TaxType_IN (enum)
NoNone
TransRecId_MXRecord ID of the transaction, used for Mexico. The table it points to is not fixed.Int64
RefRecId
NoNone
TransTableId_MXID of the table that the Mexican transaction record belongs to.Integer
RefTableId
NoNone
VatDueDate_WDate of the VAT register.Date
VatDueDate_W
NoNone
VATNum_PLVAT or tax exempt number, used for Poland.String (20)
VATNum
NoNone

Indexes (1)

  • TaxTransIdx

    TaxTrans

    Unique, alternate key.

Relations (8)

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

  • PlTaxDueTable → PlTaxDueTable

    Join on TaxPeriodPaymentCode_PL = PlTaxDueTable.TaxPeriodPaymentCode

    Many TaxTransHistory_W records → zero or one PlTaxDueTable record

  • TaxComponentTable_IN → TaxComponentTable_IN

    Join on TaxComponentTable_IN = TaxComponentTable_IN.RecId

    Many TaxTransHistory_W records → zero or one TaxComponentTable_IN record

  • TaxRegistrationNumberTable_IN → TaxRegistrationNumbers_IN

    Join on TaxRegistrationNumberTable_IN = TaxRegistrationNumbers_IN.RecId

    Many TaxTransHistory_W records → zero or one TaxRegistrationNumbers_IN record

  • TaxTrans → TaxTransHistory

    Join on TaxTrans = TaxTransHistory.RecId

    Zero or one TaxTransHistory_W record → exactly one TaxTransHistory record

  • TaxTransRefRecId_IN → TaxTransHistory

    Join on TaxTransRefRecId_IN = TaxTransHistory.RecId

    Exactly one TaxTransHistory_W record → zero or one TaxTransHistory record

  • TaxTransReversed_W → TaxTransHistory

    Join on ReversedTaxTransRecId_W = TaxTransHistory.RecId

    Many TaxTransHistory_W records → zero or one TaxTransHistory record

  • Common → Common

    Join on TransTableId_MX = Common.TableId, TransRecId_MX = Common.RecId

    Zero or one TaxTransHistory_W record → exactly one Common record

  • CommonOffset → Common

    Join on TransTableId_MX = Common.TableId, OffsetRecId_MX = Common.RecId

    Many TaxTransHistory_W records → exactly one Common record

Get this data out

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

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

Email sales@drdynamics.co.uk