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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesTablePoints to the sales order that this row extends. | Int64RefRecId | Yes | SalesTable.RecId | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InvoicePostalAddressPoints to the postal address used as the invoice address. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
NoteFormatFormat of the note: none, or a debit or credit note based on value or quantity. | EnumTaxUnrealizedSalesNoteFormat (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReasonTableRefPoints to a reason reference record. | Int64RefRecId | No | ReasonTableRef.RecId | 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 | |
RefInvoiceAmountCurValue of the reference invoice. The currency is not stated in the metadata. | RealTaxUnrealizedSalesRefInvoiceAmountCur | No | None | |
RefInvoiceIdIdentifier of the invoice that this sales order refers to. | String (50)TaxUnrealizedSalesRefInvoiceId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxAgentPoints to the tax agent record linked to the order. | Int64TaxAgentRefRecId | No | TaxAgent.RecId | None |
TaxBranchPoints to the tax branch record linked to the order. | Int64TaxBranchRefRecId | No | TaxBranch.RecId | None |
Indexes (3)
TaxAgentIdxNot unique.
ReasonTableRefIdxNot unique.
SalesTableIdxReplacement keyUnique, alternate key.
Relations (5)
Each relation joins SalesTableExtensionTH to another table on the fields shown.
ReasonTableRef→ReasonTableRefJoin on
ReasonTableRef = ReasonTableRef.RecIdMany SalesTableExtensionTH records → zero or one ReasonTableRef record
SalesTable→SalesTableJoin on
SalesTable = SalesTable.RecIdZero or one SalesTableExtensionTH record → exactly one SalesTable record
TaxAgent→TaxAgentJoin on
TaxAgent = TaxAgent.RecIdMany SalesTableExtensionTH records → zero or one TaxAgent record
TaxBranch→TaxBranchJoin on
TaxBranch = TaxBranch.RecIdMany SalesTableExtensionTH records → zero or one TaxBranch record
InvoicePostalAddress→LogisticsPostalAddressJoin on
InvoicePostalAddress = LogisticsPostalAddress.RecIdMany 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.