Table
SalesTableHistory_W
SalesOrderCountryExt
Country-specific extra header data for a sales order, one row per order (key SalesTable). It gathers fields for several countries, including India, Poland, Latvia, Lithuania, Japan and Malaysia. Examples are tax groups, e-commerce details, bank accounts and certificate settings.
- Table name
SalesTableHistory_W- Module
Accounts receivable- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
RecId- Replacement key
SalesTable- Key fields
SalesTable- Model
Foundation
Fields (35)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesTablePoints to the sales order that this row belongs to. | Int64RefRecId | No | SalesTable.RecId | None |
BankAccount_LVPrimary company bank account, used for Latvia. | StringCompanyBankAccountId | No | None | |
ConsTarget_JPShows whether the order is a target of consolidation, used for Japan. | EnumCustConsTarget_JPNoYes (enum) | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CreditNoteReasonCodeRecord ID of the reason reference for a credit note. | Int64ReasonTableRefRecId | No | None | |
CurBankAccount_LVCompany bank code for an additional currency, used for Latvia. | StringCompanyBankAccountId | No | None | |
CustBankAccount_LVCustomer bank account, used for Latvia. | StringCustBankAccountId | No | None | |
CustomsExportOrder_INShows whether this is an export order, used for India. | EnumNoYesIdNoYes (enum) | No | None | |
CustomsShippingBill_INShows whether a shipping bill applies, used for India. | EnumNoYesIdNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ECommerceOperator_INCustomer account of the e-commerce operator for the order, used for India. | String (20)CustAccount | No | None | |
ECommerceOperatorGSTIN_INReference to the record holding the GST registration number (GSTIN) of the e-commerce operator; used for India. | Int64RefRecId | No | None | |
ECommerceSale_INShows whether the order is an e-commerce sale, used for India. | EnumNoYesIdNoYes (enum) | No | None | |
EntryCertificateRequired_WShows whether an entry certificate is required. | EnumEntryCertificateRequired_WNoYes (enum) | No | None | |
FiscalDocType_PLType of document printed: invoice or fiscal document, used for Poland. | EnumPlFiscalDocType (enum) | No | None | |
IntrastatAddValue_LVAdditional value for Intrastat reporting, used for Latvia. | RealLvIntrastatAddValue | No | None | |
InvoiceType_MYType of invoice, such as GST, self-billed or service invoice, used for Malaysia. | EnumInvoiceType_MY (enum) | No | None | |
IssueOwnEntryCertificate_WShows whether the company issues its own entry certificate. | EnumIssueOwnEntryCertificate_WNoYes (enum) | No | None | |
MerchantID_INMerchant ID given for the e-commerce operator; used for India. | String (60)MerchantID_IN | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
NatureOfAssessee_INType of assessee, such as company, firm or individual, used for India. | EnumNatureOfAssessee_IN (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProvisionalAssessment_INShows whether the invoice amount is set by provisional assessment, used for India. | EnumNoYesIdNoYes (enum) | 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 | |
TaxPeriodPaymentCode_PLVAT report date code, used for Poland. | StringPlTaxPeriodPaymentCode | No | None | |
TCSGroup_INTax collected at source (TCS) group, used for India. | StringTaxWithholdGroup | No | None | |
TDSGroup_INTax deducted at source (TDS) group, used for India. | StringTaxWithholdGroup | No | None | |
TransportationDocumentRecord ID of the transportation details linked to the order. | Int64TransportationDocumentRecId | No | None | |
UnitedVATInvoice_LTShows whether the invoice is a united VAT invoice, used for Lithuania. | EnumUnitedVATInvoice_LTNoYes (enum) | No | None | |
WithIGSTPayment_INShows whether the sale is made with tax payment (IGST), used for India. | EnumNoYesIdNoYes (enum) | No | None | |
WouldYouClaimRefund_INShows whether a refund will be claimed, used for India. | EnumNoYesIdNoYes (enum) | No | None |
Indexes (1)
SalesTableReplacement keyUnique, alternate key.
Relations (1)
Each relation joins SalesTableHistory_W to another table on the fields shown.
SalesTable→SalesTableJoin on
SalesTable = SalesTable.RecIdZero or one SalesTableHistory_W record → exactly one SalesTable record
Get this data out
No public entity reads from SalesTableHistory_W. Its data is only reachable through the application, a custom entity or a database export.
Need help with SalesTableHistory_W in a report, an integration or a migration? Talk to Dr Dynamics.