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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ExcludeFromReportsYes/No flag to leave this tax transaction out of reports. | EnumTaxTransExcludeFromReportsNoYes (enum) | No | None | |
InvoiceDateDate of the invoice. | DateTaxUnrealizedPurchInvoiceDate | No | None | |
InvoiceReceiptDateDate the invoice was received. | DateTaxUnrealizedPurchInvoiceReceiptDate | No | None | |
IsReversalGainLossYes/No flag; the name suggests it relates to a reversal gain or loss, but no label is given.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymTaxCodeSales tax code that applies to the payment. | StringTaxUnrealizedPaymTaxCode | No | TaxTable.TaxCode | None |
RealVendNameName of the actual vendor. | String (160)TaxUnrealizedPurchRealVendName | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxBranchCode of the tax branch, linked to the tax branch records. | String (20)TaxBranchCode | No | TaxBranch.Code | None |
TaxInvoiceDateDate of the tax invoice. | DateTaxUnrealizedPurchTaxInvoiceDate | No | None | |
TaxInvoiceIdNumber of the tax invoice. | String (20)TaxUnrealizedPurchTaxInvoiceId | No | None | |
TaxInvoiceReceiptDateDate the tax invoice was received. | DateTaxUnrealizedPurchTaxInvoiceRcptDate | No | None | |
TaxTransPoints to the posted sales tax history record that these Thai details belong to. | Int64RefRecId | Yes | TaxTransHistory.RecId | None |
TaxTypeKind of tax: normal, average unrealized or average realized. | EnumTaxType_TH (enum) | No | None | |
TaxUnrealizedRefRecIdPoints to the posted sales tax history record for the unrealized tax. | Int64TaxUnrealizedRefRecId | No | TaxTransHistory.RecId | None |
Indexes (1)
Relations (4)
Each relation joins TaxTransHistory_TH to another table on the fields shown.
TaxBranch→TaxBranchJoin on
TaxBranch = TaxBranch.CodeMany TaxTransHistory_TH records → zero or one TaxBranch record
TaxTable→TaxTableJoin on
PaymTaxCode = TaxTable.TaxCodeMany TaxTransHistory_TH records → zero or one TaxTable record
TaxTrans→TaxTransHistoryJoin on
TaxTrans = TaxTransHistory.RecIdZero or one TaxTransHistory_TH record → exactly one TaxTransHistory record
TaxTrans_Unrealized→TaxTransHistoryJoin on
TaxUnrealizedRefRecId = TaxTransHistory.RecIdMany 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.