Table

TaxTransHistory_TH

Posted sales tax history for Thailand

Extra fields for posted sales tax history records, used for Thailand. It holds tax invoice numbers and dates, receipt dates, the actual vendor name, the tax branch and the tax type. It links to the main tax history record, tax codes and tax branches.

Table name
TaxTransHistory_TH
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 (18)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ExcludeFromReportsYes/No flag to leave this tax transaction out of reports.Enum
TaxTransExcludeFromReports
NoYes (enum)
NoNone
InvoiceDateDate of the invoice.Date
TaxUnrealizedPurchInvoiceDate
NoNone
InvoiceReceiptDateDate the invoice was received.Date
TaxUnrealizedPurchInvoiceReceiptDate
NoNone
IsReversalGainLossYes/No flag; the name suggests it relates to a reversal gain or loss, but no label is given.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymTaxCodeSales tax code that applies to the payment.String
TaxUnrealizedPaymTaxCode
NoTaxTable.TaxCodeNone
RealVendNameName of the actual vendor.String (160)
TaxUnrealizedPurchRealVendName
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxBranchCode of the tax branch, linked to the tax branch records.String (20)
TaxBranchCode
NoTaxBranch.CodeNone
TaxInvoiceDateDate of the tax invoice.Date
TaxUnrealizedPurchTaxInvoiceDate
NoNone
TaxInvoiceIdNumber of the tax invoice.String (20)
TaxUnrealizedPurchTaxInvoiceId
NoNone
TaxInvoiceReceiptDateDate the tax invoice was received.Date
TaxUnrealizedPurchTaxInvoiceRcptDate
NoNone
TaxTransPoints to the posted sales tax history record that these Thai details belong to.Int64
RefRecId
YesTaxTransHistory.RecIdNone
TaxTypeKind of tax: normal, average unrealized or average realized.Enum
TaxType_TH (enum)
NoNone
TaxUnrealizedRefRecIdPoints to the posted sales tax history record for the unrealized tax.Int64
TaxUnrealizedRefRecId
NoTaxTransHistory.RecIdNone

Indexes (1)

Relations (4)

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

  • TaxBranch → TaxBranch

    Join on TaxBranch = TaxBranch.Code

    Many TaxTransHistory_TH records → zero or one TaxBranch record

  • TaxTable → TaxTable

    Join on PaymTaxCode = TaxTable.TaxCode

    Many TaxTransHistory_TH records → zero or one TaxTable record

  • TaxTrans → TaxTransHistory

    Join on TaxTrans = TaxTransHistory.RecId

    Zero or one TaxTransHistory_TH record → exactly one TaxTransHistory record

  • TaxTrans_Unrealized → TaxTransHistory

    Join on TaxUnrealizedRefRecId = TaxTransHistory.RecId

    Many TaxTransHistory_TH records → zero or one TaxTransHistory record

Get this data out

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

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

Email sales@drdynamics.co.uk