Table

TaxTransExtensionTH

Posted sales tax for Thailand

Extra posted sales tax data used for Thailand. It adds to a posted tax transaction (TaxTrans) with tax invoice details, dates, branch code and tax type. It also holds a link to an unrealised tax transaction.

Table name
TaxTransExtensionTH
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 (19)

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 transaction out of reports.Enum
TaxTransExcludeFromReports
NoYes (enum)
NoTaxTransTHBiEntity
InvoiceDateDate of the invoice.Date
TaxUnrealizedPurchInvoiceDate
NoTaxTransTHBiEntity
InvoiceReceiptDateDate the invoice was received.Date
TaxUnrealizedPurchInvoiceReceiptDate
NoTaxTransTHBiEntity
IsReversalGainLossYes/No flag. The label is empty, but the name suggests it relates to a reversal of gain or loss.low confidenceEnum
NoYesId
NoYes (enum)
NoTaxTransTHBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymTaxCodeSales tax code for the payment, linked to the sales tax codes table.String
TaxUnrealizedPaymTaxCode
NoTaxTable.TaxCodeTaxTransTHBiEntity
RealVendNameName of the actual vendor.String (160)
TaxUnrealizedPurchRealVendName
NoTaxTransTHBiEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoTaxTransTHBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
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
TaxBranchCode of the tax branch, linked to the tax branch table.String (20)
TaxBranchCode
NoTaxBranch.CodeTaxTransTHBiEntity
TaxInvoiceDateDate of the tax invoice.Date
TaxUnrealizedPurchTaxInvoiceDate
NoTaxTransTHBiEntity
TaxInvoiceIdNumber of the tax invoice.String (20)
TaxUnrealizedPurchTaxInvoiceId
NoTaxTransTHBiEntity
TaxInvoiceReceiptDateDate the tax invoice was received.Date
TaxUnrealizedPurchTaxInvoiceRcptDate
NoTaxTransTHBiEntity
TaxTransPoints to the posted sales tax transaction that these Thai details belong to.Int64
RefRecId
YesTaxTrans.RecIdTaxTransTHBiEntity
TaxTypeKind of tax: normal, average unrealised or average realised.Enum
TaxType_TH (enum)
NoTaxTransTHBiEntity
TaxUnrealizedRefRecIdPoints to the posted tax transaction that holds the unrealised tax.Int64
TaxUnrealizedRefRecId
NoTaxTrans.RecIdTaxTransTHBiEntity

Indexes (4)

Relations (4)

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

  • TaxBranch → TaxBranch

    Join on TaxBranch = TaxBranch.Code

    Many TaxTransExtensionTH records → zero or one TaxBranch record

  • TaxTable → TaxTable

    Join on PaymTaxCode = TaxTable.TaxCode

    Many TaxTransExtensionTH records → zero or one TaxTable record

  • TaxTrans → TaxTrans

    Join on TaxTrans = TaxTrans.RecId

    Zero or one TaxTransExtensionTH record → exactly one TaxTrans record

  • TaxTrans_Unrealized → TaxTrans

    Join on TaxUnrealizedRefRecId = TaxTrans.RecId

    Many TaxTransExtensionTH records → zero or one TaxTrans record

Get this data out

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

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

Email sales@drdynamics.co.uk