Table

SalesTableExtensionTH

Sales orders for Thailand

Extra data for a sales order, used for Thailand. There is one row per sales order, linked by the SalesTable key. It holds the note format, a reference invoice and its value, the tax agent, the tax branch and the invoice address.

Table name
SalesTableExtensionTH
Module
Accounts receivable
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
None
Replacement key
SalesTableIdx
Key fields
SalesTable
Model
Foundation

Fields (13)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTablePoints to the sales order that this row extends.Int64
RefRecId
YesSalesTable.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InvoicePostalAddressPoints to the postal address used as the invoice address.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
NoteFormatFormat of the note: none, or a debit or credit note based on value or quantity.Enum
TaxUnrealizedSalesNoteFormat (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ReasonTableRefPoints to a reason reference record.Int64
RefRecId
NoReasonTableRef.RecIdNone
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
RefInvoiceAmountCurValue of the reference invoice. The currency is not stated in the metadata.Real
TaxUnrealizedSalesRefInvoiceAmountCur
NoNone
RefInvoiceIdIdentifier of the invoice that this sales order refers to.String (50)
TaxUnrealizedSalesRefInvoiceId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxAgentPoints to the tax agent record linked to the order.Int64
TaxAgentRefRecId
NoTaxAgent.RecIdNone
TaxBranchPoints to the tax branch record linked to the order.Int64
TaxBranchRefRecId
NoTaxBranch.RecIdNone

Indexes (3)

Relations (5)

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

  • ReasonTableRef → ReasonTableRef

    Join on ReasonTableRef = ReasonTableRef.RecId

    Many SalesTableExtensionTH records → zero or one ReasonTableRef record

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Zero or one SalesTableExtensionTH record → exactly one SalesTable record

  • TaxAgent → TaxAgent

    Join on TaxAgent = TaxAgent.RecId

    Many SalesTableExtensionTH records → zero or one TaxAgent record

  • TaxBranch → TaxBranch

    Join on TaxBranch = TaxBranch.RecId

    Many SalesTableExtensionTH records → zero or one TaxBranch record

  • InvoicePostalAddress → LogisticsPostalAddress

    Join on InvoicePostalAddress = LogisticsPostalAddress.RecId

    Many SalesTableExtensionTH records → zero or one LogisticsPostalAddress record

Get this data out

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

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

Email sales@drdynamics.co.uk