Table

SalesTable_W

SalesOrderCountryExt

Holds extra country-specific data for sales orders. It has one record for each sales order, linked by the SalesTable key. It also links to bank accounts, tax registration numbers, withholding tax groups, reason codes and transportation documents. It is used by the sales order header entities.

Table name
SalesTable_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 (36)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesTableSales order this record extends.Int64
RefRecId
NoSalesTable.RecIdSalesTableWBiEntity
BankAccount_LVPrimary company bank account, used for Latvia.String
CompanyBankAccountId
NoBankAccountTable.AccountIDSalesTableWBiEntity
ConsTarget_JPYes/No flag marking the order as a consolidation target, used for Japan.Enum
CustConsTarget_JP
NoYes (enum)
NoSalesTableWBiEntity
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
CreditNoteReasonCodeReason reference for a credit note.Int64
ReasonTableRefRecId
NoReasonTableRef.RecIdSalesTableWBiEntity
CurBankAccount_LVCompany bank account for an additional currency, used for Latvia.String
CompanyBankAccountId
NoBankAccountTable.AccountIDSalesTableWBiEntity
CustBankAccount_LVCustomer bank account, used for Latvia.String
CustBankAccountId
NoSalesTableWBiEntity
CustomsExportOrder_INYes/No flag marking an export order, used for India.Enum
NoYesId
NoYes (enum)
NoSalesTableWBiEntity
CustomsShippingBill_INYes/No flag for a shipping bill, used for India.Enum
NoYesId
NoYes (enum)
NoSalesTableWBiEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ECommerceOperator_INCustomer account of the e-commerce operator, used for India.String (20)
CustAccount
NoSalesTableWBiEntity
ECommerceOperatorGSTIN_INGSTIN tax registration of the e-commerce operator, used for India.Int64
RefRecId
NoTaxRegistrationNumbers_IN.RecIdSalesTableWBiEntity
ECommerceSale_INYes/No flag marking the order as an e-commerce sale, used for India.Enum
NoYesId
NoYes (enum)
NoSalesTableWBiEntity
EntryCertificateRequired_WYes/No flag showing whether an entry certificate is required.Enum
EntryCertificateRequired_W
NoYes (enum)
NoSalesTableWBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
FiscalDocType_PLDocument to print, invoice or fiscal document, used for Poland.Enum
PlFiscalDocType (enum)
NoSalesTableWBiEntity
IntrastatAddValue_LVAdditional value for Intrastat reporting, used for Latvia.Real
LvIntrastatAddValue
NoSalesTableWBiEntity
InvoiceType_MYType of invoice, such as GST or self-billed, used for Malaysia.Enum
InvoiceType_MY (enum)
NoSalesTableWBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
IssueOwnEntryCertificate_WYes/No flag for issuing your own entry certificate.Enum
IssueOwnEntryCertificate_W
NoYes (enum)
NoSalesTableWBiEntitySalesOrderHeaderV4EntitySalesOrderHeaderV3Entityand 4 more
MerchantID_INIdentifier of the e-commerce operator (merchant) for the sales order, used for India.String (60)
MerchantID_IN
NoSalesTableWBiEntity
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)
NoSalesTableWBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProvisionalAssessment_INYes/No flag showing whether the invoice amount is set by provisional assessment, used for India.Enum
NoYesId
NoYes (enum)
NoSalesTableWBiEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoSalesTableWBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxPeriodPaymentCode_PLVAT report date code, used for Poland.String
PlTaxPeriodPaymentCode
NoPlTaxDueTable.TaxPeriodPaymentCodeSalesTableWBiEntity
TCSGroup_INTax collected at source (TCS) withholding group, used for India.String
TaxWithholdGroup
NoTaxWithholdGroupHeading.TaxWithholdGroupSalesTableWBiEntity
TDSGroup_INTax deducted at source (TDS) withholding group, used for India.String
TaxWithholdGroup
NoTaxWithholdGroupHeading.TaxWithholdGroupSalesTableWBiEntity
TransportationDocumentTransportation details record linked to the order.Int64
TransportationDocumentRecId
NoTransportationDocument.RecIdSalesTableWBiEntity
UnitedVATInvoice_LTYes/No flag for a united VAT invoice, used for Lithuania.Enum
UnitedVATInvoice_LT
NoYes (enum)
NoSalesTableWBiEntity
WithIGSTPayment_INYes/No flag for supply with tax payment, used for India.Enum
NoYesId
NoYes (enum)
NoSalesTableWBiEntity
WouldYouClaimRefund_INYes/No flag showing whether a refund will be claimed, used for India.Enum
NoYesId
NoYes (enum)
NoSalesTableWBiEntity

Indexes (1)

  • SalesTableReplacement key

    SalesTable

    Unique, alternate key.

Relations (9)

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

  • BankAccount_LV → BankAccountTable

    Join on BankAccount_LV = BankAccountTable.AccountID

    Zero or one SalesTable_W record → zero or one BankAccountTable record

  • CurBankAccount_LV → BankAccountTable

    Join on CurBankAccount_LV = BankAccountTable.AccountID

    Zero or one SalesTable_W record → zero or one BankAccountTable record

  • PlTaxDueTable → PlTaxDueTable

    Join on TaxPeriodPaymentCode_PL = PlTaxDueTable.TaxPeriodPaymentCode

    Many SalesTable_W records → zero or one PlTaxDueTable record

  • ReasonTableRef → ReasonTableRef

    Join on CreditNoteReasonCode = ReasonTableRef.RecId

    Many SalesTable_W records → zero or one ReasonTableRef record

  • SalesTable → SalesTable

    Join on SalesTable = SalesTable.RecId

    Zero or one SalesTable_W record → exactly one SalesTable record

  • TaxWithholdGroupHeadingTCS_IN → TaxWithholdGroupHeading

    Join on TCSGroup_IN = TaxWithholdGroupHeading.TaxWithholdGroup

    Many SalesTable_W records → zero or one TaxWithholdGroupHeading record

  • TaxWithholdGroupHeadingTDS_IN → TaxWithholdGroupHeading

    Join on TDSGroup_IN = TaxWithholdGroupHeading.TaxWithholdGroup

    Many SalesTable_W records → zero or one TaxWithholdGroupHeading record

  • TransportationDocument → TransportationDocument

    Join on TransportationDocument = TransportationDocument.RecId

    Zero or one SalesTable_W record → zero or one TransportationDocument record

  • ECommerceOperatorGSTIN → TaxRegistrationNumbers_IN

    Join on ECommerceOperatorGSTIN_IN = TaxRegistrationNumbers_IN.RecId

    Many SalesTable_W records → zero or one TaxRegistrationNumbers_IN record

Get this data out

Tables are not exposed directly. These public entities read from SalesTable_W; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk