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 descriptionType / EDT / enumMandatoryReferencesIn public entities
BranchNumberNumber of the tax branch.String (15)
BranchNumber_TH
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DateDate of the action.Date
TransDate
NoNone
InvoiceAddressPoints to the postal address used on the invoice.Int64
RefRecId
NoLogisticsPostalAddress.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
SourceRecIdSystem record ID of the source record, for example a customer invoice journal.Int64
RefRecId
NoNone
SourceTableIdID of the table that the source record belongs to.Integer
RefTableId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxNatureOfAddressWhether the address is a head office or a branch.Enum
TaxNatureOfAddress_TH (enum)
NoNone
TaxRegNumTax registration number.String (25)
CompanyCoRegNum
NoNone

Indexes (1)

Relations (4)

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

  • CustInvoiceJour → CustInvoiceJour

    Join on SourceTableId = CustInvoiceJour.TableId, SourceRecId = CustInvoiceJour.RecId

    Many CustVendTaxBranchHistory_TH records → zero or one CustInvoiceJour record

  • InvoiceAddress → LogisticsPostalAddress

    Join on InvoiceAddress = LogisticsPostalAddress.RecId

    Zero or one CustVendTaxBranchHistory_TH record → zero or one LogisticsPostalAddress record

  • LedgerJournalTrans → LedgerJournalTrans

    Join on SourceTableId = LedgerJournalTrans.TableId, SourceRecId = LedgerJournalTrans.RecId

    Many CustVendTaxBranchHistory_TH records → zero or one LedgerJournalTrans record

  • VendInvoiceJour → VendInvoiceJour

    Join on SourceTableId = VendInvoiceJour.TableId, SourceRecId = VendInvoiceJour.RecId

    Many 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.

Email sales@drdynamics.co.uk