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 descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTablePoints to the sales order that this row belongs to.Int64
RefRecId
NoSalesTable.RecIdNone
BankAccount_LVPrimary company bank account, used for Latvia.String
CompanyBankAccountId
NoNone
ConsTarget_JPShows whether the order is a target of consolidation, used for Japan.Enum
CustConsTarget_JP
NoYes (enum)
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CreditNoteReasonCodeRecord ID of the reason reference for a credit note.Int64
ReasonTableRefRecId
NoNone
CurBankAccount_LVCompany bank code for an additional currency, used for Latvia.String
CompanyBankAccountId
NoNone
CustBankAccount_LVCustomer bank account, used for Latvia.String
CustBankAccountId
NoNone
CustomsExportOrder_INShows whether this is an export order, used for India.Enum
NoYesId
NoYes (enum)
NoNone
CustomsShippingBill_INShows whether a shipping bill applies, used for India.Enum
NoYesId
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ECommerceOperator_INCustomer account of the e-commerce operator for the order, used for India.String (20)
CustAccount
NoNone
ECommerceOperatorGSTIN_INReference to the record holding the GST registration number (GSTIN) of the e-commerce operator; used for India.Int64
RefRecId
NoNone
ECommerceSale_INShows whether the order is an e-commerce sale, used for India.Enum
NoYesId
NoYes (enum)
NoNone
EntryCertificateRequired_WShows whether an entry certificate is required.Enum
EntryCertificateRequired_W
NoYes (enum)
NoNone
FiscalDocType_PLType of document printed: invoice or fiscal document, used for Poland.Enum
PlFiscalDocType (enum)
NoNone
IntrastatAddValue_LVAdditional value for Intrastat reporting, used for Latvia.Real
LvIntrastatAddValue
NoNone
InvoiceType_MYType of invoice, such as GST, self-billed or service invoice, used for Malaysia.Enum
InvoiceType_MY (enum)
NoNone
IssueOwnEntryCertificate_WShows whether the company issues its own entry certificate.Enum
IssueOwnEntryCertificate_W
NoYes (enum)
NoNone
MerchantID_INMerchant ID given for the e-commerce operator; used for India.String (60)
MerchantID_IN
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NatureOfAssessee_INType of assessee, such as company, firm or individual, used for India.Enum
NatureOfAssessee_IN (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProvisionalAssessment_INShows whether the invoice amount is set by provisional assessment, used for India.Enum
NoYesId
NoYes (enum)
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxPeriodPaymentCode_PLVAT report date code, used for Poland.String
PlTaxPeriodPaymentCode
NoNone
TCSGroup_INTax collected at source (TCS) group, used for India.String
TaxWithholdGroup
NoNone
TDSGroup_INTax deducted at source (TDS) group, used for India.String
TaxWithholdGroup
NoNone
TransportationDocumentRecord ID of the transportation details linked to the order.Int64
TransportationDocumentRecId
NoNone
UnitedVATInvoice_LTShows whether the invoice is a united VAT invoice, used for Lithuania.Enum
UnitedVATInvoice_LT
NoYes (enum)
NoNone
WithIGSTPayment_INShows whether the sale is made with tax payment (IGST), used for India.Enum
NoYesId
NoYes (enum)
NoNone
WouldYouClaimRefund_INShows whether a refund will be claimed, used for India.Enum
NoYesId
NoYes (enum)
NoNone

Indexes (1)

  • SalesTableReplacement key

    SalesTable

    Unique, alternate key.

Relations (1)

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

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

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

Email sales@drdynamics.co.uk