Table
CustVendTaxBranchHistory_TH
Correction
Keeps a history of tax branch details for invoices. Used for Thailand. Each record stores a branch number, tax registration number, address type and invoice address, linked to a source record such as a customer invoice journal.
- Table name
CustVendTaxBranchHistory_TH- Module
Accounts receivable- 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 (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BranchNumberNumber of the tax branch. | String (15)BranchNumber_TH | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DateDate of the action. | DateTransDate | No | None | |
InvoiceAddressPoints to the postal address used on the invoice. | Int64RefRecId | No | LogisticsPostalAddress.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
SourceRecIdSystem record ID of the source record, for example a customer invoice journal. | Int64RefRecId | No | None | |
SourceTableIdID of the table that the source record belongs to. | IntegerRefTableId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxNatureOfAddressWhether the address is a head office or a branch. | EnumTaxNatureOfAddress_TH (enum) | No | None | |
TaxRegNumTax registration number. | String (25)CompanyCoRegNum | No | None |
Indexes (1)
DateNot unique.
Relations (4)
Each relation joins CustVendTaxBranchHistory_TH to another table on the fields shown.
CustInvoiceJour→CustInvoiceJourJoin on
SourceTableId = CustInvoiceJour.TableId,SourceRecId = CustInvoiceJour.RecIdMany CustVendTaxBranchHistory_TH records → zero or one CustInvoiceJour record
InvoiceAddress→LogisticsPostalAddressJoin on
InvoiceAddress = LogisticsPostalAddress.RecIdZero or one CustVendTaxBranchHistory_TH record → zero or one LogisticsPostalAddress record
LedgerJournalTrans→LedgerJournalTransJoin on
SourceTableId = LedgerJournalTrans.TableId,SourceRecId = LedgerJournalTrans.RecIdMany CustVendTaxBranchHistory_TH records → zero or one LedgerJournalTrans record
VendInvoiceJour→VendInvoiceJourJoin on
SourceTableId = VendInvoiceJour.TableId,SourceRecId = VendInvoiceJour.RecIdMany CustVendTaxBranchHistory_TH records → zero or one VendInvoiceJour record
Get this data out
No public entity reads from CustVendTaxBranchHistory_TH. Its data is only reachable through the application, a custom entity or a database export.
Need help with CustVendTaxBranchHistory_TH in a report, an integration or a migration? Talk to Dr Dynamics.