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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AbatementAmount_INAbatement amount, used for India. | RealTaxAmount | No | None | |
Addressing_PLAddress text, used for Poland. | String (250)Addressing | No | None | |
ApplyExcise_INYes/No flag showing whether excise applies, used for India. | EnumNoYesIdNoYes (enum) | No | None | |
ClaimPercentage_INPercentage that can be claimed, used for India. | RealPercent | 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 | |
CustomsDuty_INCustoms duty amount, used for India. | RealCustomsAmount_IN | No | None | |
CustVendName_PLName of the customer or vendor, used for Poland. | String (160)PlCustVendName | No | None | |
CustVendTransPostingLogTaxOrigin_WOrigin tax transaction for tax settled through the transaction posting log. | Int64TaxTransRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DocumentDate_PLDate of the document, used for Poland and the Czech Republic. | DateDocumentDate | No | None | |
ExciseAmount_PLExcise duty amount, used for Poland. | RealPlExciseAmount | No | 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 | |
OffsetRecId_MXRecord ID of the offset record, used for Mexico. The table it points to is not fixed. | Int64RefRecId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PromissoryNoteInvoice_MXInvoice number for a promissory note, used for Mexico. | String (50)InvoiceId | 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 | |
ReversedTaxTransRecId_WPoints to the posted tax history record that was reversed, used for Poland. | Int64TaxTransRefRecId | No | TaxTransHistory.RecId | None |
ServiceTaxReverseChargeOriginAmount_INOriginal corrected amount for service tax reverse charge, used for India. | RealTaxRegulationAmountCur | No | None | |
ServiceTaxReverseChargePercentage_INPercentage for service tax reverse charge, used for India. | RealServiceTaxRevPercentage_IN | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAmountCustoms_INTax amount in the customs currency, used for India. | RealTaxAmount | No | None | |
TaxComponentTable_INPoints to the tax component record, used for India. | Int64RefRecId | No | TaxComponentTable_IN.RecId | None |
TaxPeriodPaymentCode_PLCode of the VAT report date, used for Poland. | StringPlTaxPeriodPaymentCode | No | PlTaxDueTable.TaxPeriodPaymentCode | None |
TaxRegistrationNumberTable_INPoints to the tax registration number record, used for India. | Int64RefRecId | No | TaxRegistrationNumbers_IN.RecId | None |
TaxTransPoints to the posted sales tax history record that these details belong to. | Int64TaxTransRefRecId | No | TaxTransHistory.RecId | None |
TaxTransRefRecId_INPoints to the referenced posted tax history record, used for India. | Int64RefRecId | No | TaxTransHistory.RecId | None |
TaxType_INKind of tax, such as VAT, excise, service tax, customs or GST, used for India. | EnumTaxType_IN (enum) | No | None | |
TransRecId_MXRecord ID of the transaction, used for Mexico. The table it points to is not fixed. | Int64RefRecId | No | None | |
TransTableId_MXID of the table that the Mexican transaction record belongs to. | IntegerRefTableId | No | None | |
VatDueDate_WDate of the VAT register. | DateVatDueDate_W | No | None | |
VATNum_PLVAT or tax exempt number, used for Poland. | String (20)VATNum | No | None |
Indexes (1)
TaxTransIdxUnique, alternate key.
Relations (8)
Each relation joins TaxTransHistory_W to another table on the fields shown.
PlTaxDueTable→PlTaxDueTableJoin on
TaxPeriodPaymentCode_PL = PlTaxDueTable.TaxPeriodPaymentCodeMany TaxTransHistory_W records → zero or one PlTaxDueTable record
TaxComponentTable_IN→TaxComponentTable_INJoin on
TaxComponentTable_IN = TaxComponentTable_IN.RecIdMany TaxTransHistory_W records → zero or one TaxComponentTable_IN record
TaxRegistrationNumberTable_IN→TaxRegistrationNumbers_INJoin on
TaxRegistrationNumberTable_IN = TaxRegistrationNumbers_IN.RecIdMany TaxTransHistory_W records → zero or one TaxRegistrationNumbers_IN record
TaxTrans→TaxTransHistoryJoin on
TaxTrans = TaxTransHistory.RecIdZero or one TaxTransHistory_W record → exactly one TaxTransHistory record
TaxTransRefRecId_IN→TaxTransHistoryJoin on
TaxTransRefRecId_IN = TaxTransHistory.RecIdExactly one TaxTransHistory_W record → zero or one TaxTransHistory record
TaxTransReversed_W→TaxTransHistoryJoin on
ReversedTaxTransRecId_W = TaxTransHistory.RecIdMany TaxTransHistory_W records → zero or one TaxTransHistory record
Common→CommonJoin on
TransTableId_MX = Common.TableId,TransRecId_MX = Common.RecIdZero or one TaxTransHistory_W record → exactly one Common record
CommonOffset→CommonJoin on
TransTableId_MX = Common.TableId,OffsetRecId_MX = Common.RecIdMany 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.