Table

SalesTableHistory

Archived sales order header

Archived copy of a sales order header, keyed by sales order number (SalesId). It holds the same kind of header data as a live sales order: customer, delivery, payment, tax, intercompany and country-specific details. It links to the French Chorus Pro service code table. Many fields are specific to one country or feature.

Table name
SalesTableHistory
Module
Sales and marketing
Table group
TransactionHeader
Table type
Regular
Data per company
Yes
Configuration key
LogisticsBasic
Primary index
SalesIdx
Replacement key
SalesIdx
Key fields
SalesId
Model
Foundation

Fields (238)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesIdSales order number that identifies the archived order.String (20)
SalesIdBase
YesNone
AccountingDistributionTemplateRecord ID of the accounting distribution template.Int64
AccountingDistributionTemplateRecId
NoNone
AddressRefRecIdRecord ID of the record that holds the address reference. It is used together with the reference table ID.Int64
AddressRefRecId
NoNone
AddressRefTableIdID of the table that the address reference points to.Integer
AddressRefTableId
NoNone
ArchiveServiceJobIdGUID of the service job that archived the order.Guid
ArchiveServiceJobId
NoNone
ASOHOrderClassOrder class code.low confidenceString
ASOHOrderClass
NoNone
AutoSummaryModuleTypeSets whether summary update parameters apply at customer level or sales order level.Enum
ModuleCustSales (enum)
NoNone
BankAccount_LVPrimary bank account of the company, used for Latvia.String
CompanyBankAccountId
NoNone
BankCentralBankPurposeCodeCentral bank purpose code for the order.String
BankCentralBankPurposeCode
NoNone
BankCentralBankPurposeTextFree-text purpose that goes with the central bank purpose code.String (210)
BankCentralBankPurposeText
NoNone
BankDocumentTypeType of bank document tied to the order, such as letter of credit, import collection or letter of guarantee.Enum
BankDocumentFacilityNature
BankDocumentType (enum)
NoNone
CaseTaggingYes/No flag for RFID tagging of cases.Enum
RFIDCaseTagging
NoYes (enum)
NoNone
CashDiscCode of the cash discount offered on the order.String
CustCashDiscCode
NoNone
CashDiscBaseDateBase date used with the payment terms.Date
CashDiscBaseDate
NoNone
CashDiscBaseDaysNumber of base days used with the payment terms.Integer
CashDiscBaseDays
NoNone
CashDiscPercentDiscount percentage that applies to the order.Real
DiscPct
NoNone
CertificateNumber_MXCertificate number of the document, used for Mexico.String (40)
CertificateNumber_MX
NoNone
CFDITemporaryExport_MXYes/No flag for a temporary export, used for Mexico.Enum
CFDITemporaryExport_MX
NoYes (enum)
NoNone
CommissionGroupCommission group assigned to the order.String
CommissCustomerGroup
NoNone
CommissionType_ITWhen commission is settled, on invoice or on payment, used for Italy.Enum
CommissionType_IT (enum)
NoNone
ConsTarget_JPYes/No flag showing whether the order is a target of consolidation, used for Japan.Enum
CustConsTarget_JP
NoYes (enum)
NoNone
ContactPersonIdID of the contact person for the order.String (20)
ContactPersonId
NoNone
CountyOrigDestCounty of origin or destination for the goods.String (30)
AddressCountyOrigDest
NoNone
CovStatusStatus number used for cash flow forecasts.low confidenceInteger
CovStatus
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
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
CreditCardApprovalAmountAmount approved on the credit card, in the accounting currency.Real
AmountMST
NoNone
CreditCardAuthorizationAuthorisation code returned for the credit card payment.String (36)
CreditCardAuthorization
NoNone
CreditCardAuthorizationErrorYes/No flag showing whether a capture error occurred for the card payment.Enum
NoYesId
NoYes (enum)
NoNone
CreditCardCustRefIdRecord ID of the customer card reference used for payment.Int64
RefRecId
NoNone
CreditNoteReasonCodeRecord ID of the reason code given for a credit note.Int64
ReasonTableRefRecId
NoNone
CredManExcludeSalesOrderYes/No flag to exclude the order from credit management.Enum
CredManExclude
NoYes (enum)
NoNone
CredManIdID of the credit hold.String (20)
CredManId
NoNone
CredManInCreditControlYes/No flag showing the order is in credit management.Enum
CredManUsedInCreditManagement
NoYes (enum)
NoNone
CredManRejectedYes/No flag showing the order was rejected in credit management.Enum
CredManRejected
NoYes (enum)
NoNone
CredManReleasedFromCreditControlYes/No flag showing the order was released from credit management.Enum
CredManReleasedFromCreditControl
NoYes (enum)
NoNone
CurBankAccount_LVCompany bank code used for an additional currency, used for Latvia.String
CompanyBankAccountId
NoNone
CurrencyCodeCurrency code of the order.String (3)
CustCurrencyCode
YesNone
CustAccountCustomer account that the order belongs to.String (20)
CustAccount
YesNone
CustBankAccount_LVCustomer bank account, used for Latvia.String
CustBankAccountId
NoNone
CustGroupCustomer group of the customer.String
CustGroupId
YesNone
CustInvoiceIdInvoice number linked to the order.String (20)
CustInvoiceId
NoNone
CustomerRefReference text supplied by the customer.String (60)
CustRef
NoNone
CustomsExportOrder_INYes/No flag marking the order as an export order, used for India.Enum
NoYesId
NoYes (enum)
NoNone
CustomsRegime_MXCustoms regimes text, used for Mexico.String (255)
CustomsRegimes_MX
NoNone
CustomsShippingBill_INYes/No flag for a shipping bill, used for India.Enum
NoYesId
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeadlineDeadline date for the order.Date
SalesDeadline
NoNone
DefaultDimensionRecord ID of the default financial dimension set for the order.Int64
LedgerDefaultDimensionValueSet
NoNone
DeliveryDateShip date of the order.Date
SalesShippingDate
NoNone
DeliveryDateControlTypeMethod used to control the delivery date, such as sales lead time, ATP or CTP.Enum
SalesDeliveryDateControlType (enum)
NoNone
DeliveryNameName of the delivery recipient.String (100)
LogisticsDeliveryName
NoNone
DeliveryPostalAddressRecord ID of the postal address used for delivery.Int64
LogisticsPostalAddressRecId
NoNone
DirectDebitMandateRecord ID of the direct debit mandate for the order.Int64
CustDirectDebitMandateRecId
NoNone
DiscPercentTotal discount percentage for the whole order header.Real
SalesEndDiscPct
NoNone
DlvModeMode of delivery code.String
CustDlvModeId
NoNone
DlvReasonCode for the reason for delivery.String
DlvReasonId
NoNone
DlvTermDelivery terms code.String
CustDlvTermId
NoNone
DocumentStatusLatest document type produced for the order, such as confirmation, packing slip or invoice.Enum
DocumentStatus (enum)
NoNone
DOMExceptionTypeType of exception found during distributed order management processing.Enum
DOMExceptionType (enum)
NoNone
DOMIgnoreYes/No flag; likely tells distributed order management to ignore the order.low confidenceEnum
NoYes (enum)
NoNone
DOMIterationsNumber of iterations of distributed order management processing.Integer
DOMIterations
NoNone
DOMProcessedDistributed order management status: not processed, successful or exception.Enum
DOMProcessStatus (enum)
NoNone
DOMProcessedDateTimeDate and time of distributed order management processing.UtcDateTimeNoNone
EInvoiceAccountCodeAccount code used for electronic invoicing dimensions.String (35)
EInvoiceAccountCode
NoNone
EInvoiceCFDIConfirmNumber_MXConfirmation number for an electronic invoice (CFDI), used for Mexico.String (5)
EInvoiceCFDIConfirmNumber_MX
NoNone
EInvoiceLineSpecYes/No flag for line-specific electronic invoicing.Enum
EInvoiceLineSpecific
NoYes (enum)
NoNone
ElectronicInvoiceFrameworkType_FRRecord ID of the electronic invoice framework type, used for France.Int64
RefRecId
NoNone
EmailEmail address for the order.String (80)
Email
NoNone
EndDiscTotal discount group code.String
CustEndDiscCode
NoNone
EnterpriseNumberEnterprise number of the customer for tax purposes.String (50)
TaxEnterpriseNumber
NoNone
EstimateEstimated gross amount of the order; currency not stated in the metadata.Real
SalesEstimateGross
NoNone
EXIMPorts_INRecord ID of the export-import port, used for India.Int64
EXIMPortRecId_IN
NoNone
ExpediteExpedite code for the order.String
MCRExpedite
NoNone
ExportReasonText giving the reason for export.String (30)
SalesExportReason
NoNone
FinTagRecord ID of the financial tag.Int64
FinTagRecId
NoNone
FiscalAddress_MXCountry or region code of the fiscal address, used for Mexico.String
LogisticsAddressCountryRegionId
NoNone
FiscalDocType_PLWhether an invoice or a fiscal document is printed, used for Poland.Enum
PlFiscalDocType (enum)
NoNone
FixedDueDateFixed due date for payment.Date
SalesFixedDueDate
NoNone
FixedExchRateFixed exchange rate set on the order.Real
SalesFixedExchRate
NoNone
ForeignTrade_MXYes/No flag marking a foreign trade operation, used for Mexico.Enum
ForeignTrade_MX
NoYes (enum)
NoNone
FreightSlipTypeCall tag type for freight, with values None or UPS.Enum
CustFreightSlipType
FreightSlipType (enum)
NoNone
FreightZoneUPS freight zone code.String
CustFreightZoneId
NoNone
FundingSourceRecord ID of the project funding source.Int64
ProjFundingSourceRefId
NoNone
GiroTypeType of payment attachment on the customer invoice, such as FIK, BBS or a coloured slip.Enum
PaymentStubInvoiceId
PaymentStub (enum)
NoNone
GUPDelayPricingCalculationYes/No flag to delay the price calculation.Enum
GUPDelayPriceCalculation
NoYes (enum)
NoNone
GUPSkipPricingCalculationYes/No flag to skip attribute-based pricing and use standard pricing.Enum
NoYesId
NoYes (enum)
NoNone
InclTaxYes/No flag showing whether prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
IntentLetterId_ITInternal intent letter number, used for Italy.String
IntentLetterInternalId_IT
NoNone
InterCompanyAllowIndirectCreationYes/No flag allowing indirect creation of the intercompany order.Enum
InterCompanyAllowIndirectCreation
NoYes (enum)
NoNone
InterCompanyAllowIndirectCreationOrigOriginal value of the allow indirect creation setting for intercompany orders.Enum
InterCompanyAllowIndirectCreation
NoYes (enum)
NoNone
InterCompanyAutoCreateOrdersYes/No flag for creating intercompany orders automatically.Enum
InterCompanyAutoCreateOrders
NoYes (enum)
NoNone
InterCompanyCompanyIdCompany ID of the intercompany partner.String
InterCompanyCompanyId
NoNone
InterCompanyDirectDeliveryYes/No flag for direct delivery on an intercompany order.Enum
InterCompanyDirectDelivery
NoYes (enum)
NoNone
InterCompanyDirectDeliveryOrigOriginal value of the direct delivery setting for intercompany orders.Enum
InterCompanyDirectDelivery
NoYes (enum)
NoNone
InterCompanyOrderYes/No flag showing whether this is an intercompany order.Enum
InterCompanyCustomer
NoYes (enum)
NoNone
InterCompanyOriginShows whether the intercompany order is the source or was derived.Enum
InterCompanyOrigin (enum)
NoNone
InterCompanyOriginalCustAccountCustomer account on the original intercompany order.String (20)
InterCompanyOriginalCustAccount
NoNone
InterCompanyOriginalSalesIdSales order number of the original intercompany order.String (20)
InterCompanyOriginalSalesId
NoNone
InterCompanyPurchIdPurchase order number linked through intercompany.String (20)
InterCompanyPurchId
NoNone
IntrastatAddValue_LVAdditional value for Intrastat reporting, used for Latvia.Real
LvIntrastatAddValue
NoNone
IntrastatFulfillmentDate_HUFulfilment date for Intrastat reporting, used for Hungary.Date
IntrastatFulfillmentDate_HU
NoNone
InventLocationIdWarehouse for the order.String
SalesInventLocationId
NoNone
InventSiteIdSite for the order.String
InventSiteId
NoNone
InvoiceAccountCustomer account that receives the invoice.String (20)
CustInvoiceAccount
YesNone
InvoiceAutoNumbering_LTYes/No flag for automatic invoice numbering, used for Lithuania.Enum
LtInvoiceAutoNumbering
NoYes (enum)
NoNone
InvoiceRegister_LTYes/No flag for automatic invoice numbering, used for Lithuania.Enum
LtInvoiceAutoNumbering
NoYes (enum)
NoNone
InvoiceType_WInvoice type: tax invoice or simplified invoice.Enum
InvoiceType_W (enum)
NoNone
ItemTaggingYes/No flag for RFID tagging of items.Enum
RFIDItemTagging
NoYes (enum)
NoNone
LanguageIdLanguage code used for the order.String (7)
CustLanguageId
YesNone
LineDiscLine discount group applied to the order lines.String
CustLineDiscCode
NoNone
ListcodeList code for EU trade reporting, such as EU trade or triangular trade.Enum
ListcodeId
Listcode (enum)
NoNone
ManualEntryChangepolicyPlaceholder value linked to the price and discount policy for manual entries.low confidenceInt64
PriceDiscPolicyManual
NoNone
MarkupGroupCharges group code for the order.String
CustMarkupGroupId
NoNone
MatchingAgreementRecord ID of the agreement header linked to the order.Int64
AgreementHeaderRecId
NoNone
MCROrderStoppedYes/No flag telling the system not to process the order.Enum
MCROrderStopped
NoYes (enum)
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
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoNone
MpsExcludeSalesOrderYes/No flag to exclude the order from master planning.Enum
MpsExcludeSalesOrder
NoYes (enum)
NoNone
MPSFullRunCTPStatusBatch CTP status: ready or not ready.Enum
MPSFullRunCTPStatus (enum)
NoNone
MultiLineDiscMultiline discount group code.String
CustMultiLineDiscCode
NoNone
NatureOfAssessee_INType of taxpayer, such as company, firm or individual, used for India.Enum
NatureOfAssessee_IN (enum)
NoNone
NumberSequenceGroupNumber sequence group used for the order.String
NumberSequenceGroupId
NoNone
NumRegIdTrib_MXTax registration number of the country of residence, used for Mexico.String (40)
NumRegIdTrib_MX
NoNone
OneTimeCustomerYes/No flag showing whether the customer is a one-time customer.Enum
OneTimeCustomer
NoYes (enum)
NoNone
OverrideSalesTaxYes/No flag to override the sales tax determination on the order.Enum
TaxIntegrationOverrideSalesTax
NoYes (enum)
NoNone
PackedExtensionsPacked container that stores extension data for the record.low confidenceContainer
SysExtensionSerializerPackedContainer
NoNone
PackingSlipAutoNumbering_LTYes/No flag for automatic packing slip numbering, used for Lithuania.Enum
LtPackingSlipAutoNumbering
NoYes (enum)
NoNone
PackingSlipRegister_LTYes/No flag for automatic packing slip numbering, used for Lithuania.Enum
LtPackingSlipAutoNumbering
NoYes (enum)
NoNone
PalletTaggingYes/No flag for RFID tagging of pallets.Enum
RFIDPalletTagging
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentPayment terms code.String (100)
CustPaymTermId
NoNone
PaymentSchedPayment schedule code.String (30)
PaymSchedId
NoNone
PaymModeMethod of payment code.String
CustPaymMode
NoNone
PaymSpecPayment specification code.String
CustPaymSpec
NoNone
PdsBatchAttribAutoResYes/No flag for automatic batch reservation based on batch attributes.Enum
PdsBatchAttribAutoRes
NoYes (enum)
NoNone
PdsCustRebateGroupIdCustomer rebate group ID.String (20)
PdsCustRebateGroupId
NoNone
PdsRebateProgramTMAGroupCustomer trade management agreement group for rebate programmes.String
PdsRebateProgramTMAGroup
NoNone
PhoneTelephone number for the order.String (20)
Phone
NoNone
PortPort code for Intrastat reporting.String
IntrastatPortId
NoNone
PostingProfileCustomer posting profile code.String
CustPostingProfile
NoNone
PriceGroupIdCustomer price group code.String
CustPriceGroup
NoNone
PrintDynamicQRCode_INYes/No flag to print a dynamic QR code on the invoice, used for India.Enum
PrintDynamicQRCode_IN
NoYes (enum)
NoNone
ProjectManager_FRAccount of the project manager, used for France.String (20)
CustAccount
NoNone
ProjIdProject ID linked to the order.String (20)
ProjId
NoNone
PurchIdPurchase order number linked to the order.String (20)
PurchId
NoNone
PurchOrderFormNumCustomer requisition or purchase order number.String (20)
CustPurchaseOrder
NoNone
QuotationIdQuotation number that the order came from.String (20)
QuotationId
NoNone
ReceiptDateConfirmedConfirmed date for receipt of the goods.Date
SalesReceiptDateConfirmed
NoNone
ReceiptDateRequestedRequested date for receipt of the goods.Date
SalesReceiptDateRequested
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
ReleaseStatusWarehouse release status of the order: open, partially released or released.Enum
WHSReleaseStatus (enum)
NoNone
RentalDocumentTableRecord ID of a rental document reference.low confidenceInt64
RefRecId
NoNone
RentalInvoiceScheduleTableRecord ID of a rental invoice schedule reference.low confidenceInt64
RefRecId
NoNone
RentalItemRecord ID of a rental item reference.low confidenceInt64
RefRecId
NoNone
RentalJobSiteRecord ID of a rental job site reference.low confidenceInt64
RefRecId
NoNone
RentalLoadRecord ID of a rental load reference.low confidenceInt64
RefRecId
NoNone
RentalNoticeToOwnerRecord ID of a rental notice to owner reference.low confidenceInt64
RefRecId
NoNone
RentalPickupRentalLocationIdID of the rental pickup location.String (100)NoNone
RentalShipToRental ship-to type: none, address, job site or pickup fleet location.Enum
RentalShipTo (enum)
NoNone
ReportingCurrencyFixedExchRateExchange rate used for the reporting currency.Real
CustExchRate
NoNone
ReservationReservation mode of the order: manual, automatic or explosion.Enum
ItemReservation (enum)
NoNone
RetailChannelTableRecord ID of the retail channel for the order.Int64
RetailChannelRecId
NoNone
ReturnDeadlineDeadline date for a return.Date
ReturnDeadline
NoNone
ReturnItemNumReturn merchandise authorisation (RMA) number.String
SalesReturnItemNum
NoNone
ReturnReasonCodeIdCode for the reason for the return.String
ReturnReasonCodeId
NoNone
ReturnReplacementCreatedYes/No flag showing whether an up-front replacement was created.Enum
ReturnReplacementCreated
NoYes (enum)
NoNone
ReturnReplacementIdSales order number of the replacement for a return.String (20)
ReturnReplacementId
NoNone
ReturnStatusStatus of the return: none, created, open, cancelled or closed.Enum
ReturnStatusHeader (enum)
NoNone
RevRecContractEndDateEnd date of the revenue contract.Date
TransDate
NoNone
RevRecContractStartDateStart date of the revenue contract.Date
RevRecContractStartDate
NoNone
RevRecFollowOriginalPricingMethodYes/No flag to apply the residual method for revenue recognition.Enum
NoYesId
NoYes (enum)
NoNone
RevRecLatestReverseJournalRecord ID of the latest reversal journal for revenue recognition.Int64
RefRecId
NoNone
RevRecMultipleSOReallocationYes/No flag for reallocation across multiple sales orders in revenue recognition.Enum
RevRecMultipleSOReallocation
NoYes (enum)
NoNone
RevRecReallocationIdID of the revenue reallocation.String (20)
RevRecReallocationId
NoNone
SalesGroupSales group code, used for commission.String
CommissSalesGroup
NoNone
SalesNameName of the customer on the order.String (60)
SalesName
NoNone
SalesOriginIdCode showing where the sales order originated.String
SalesOriginId
NoNone
SalesPoolIdSales pool code.String
SalesPoolId
NoNone
SalesStatusOrder status: none, open order, delivered, invoiced or cancelled.Enum
SalesStatus (enum)
NoNone
SalesTypeType of sales order, such as sales order, returned order, journal or subscription.Enum
SalesType (enum)
NoNone
SalesUnitIdID of the sales unit.String (20)
smmSalesUnitId
NoNone
SATIncotermCode_MXIncoterm code from the tax authority classification, used for Mexico.String
SATIncoterm_MX
NoNone
SATPaymMethod_MXPayment type code from the tax authority classification, used for Mexico.String
SATPaymMethod_MX
NoNone
SATPurpose_MXPurpose code from the tax authority classification, used for Mexico.String
SATPurpose_MX
NoNone
SATShippingReason_MXShipping reason code from the tax authority classification, used for Mexico.String
SATShippingReason_MX
NoNone
ServiceCode_FRService code of the invoice account, used for France.String (100)
BusinessDocInvoiceAccountServiceCode_FR
NoNone
ServiceCodeRefRecIdPoints to a Chorus Pro service code record.Int64
BusinessDocChorusProServiceCodeRefRecId
NoBusinessDocChorusProServiceCodeTable_FR.RecIdNone
SettleVoucherSettlement type: none, open transactions or designated transactions.Enum
SalesSettlementType
SettlementType (enum)
NoNone
ShipCarrierAccountCustomer's account number with the carrier.String (25)
ShipCarrierAccount
NoNone
ShipCarrierAccountCodeAccount code used with the carrier.String (20)
ShipCarrierAccountCode
NoNone
ShipCarrierBlindShipmentYes/No flag for a blind shipment.Enum
ShipCarrierBlindShipment
NoYes (enum)
NoNone
ShipCarrierDeliveryContactName of the delivery contact for the carrier.String (60)
Name
NoNone
ShipCarrierDlvTypeCarrier service type: miscellaneous, ground, air or pickup.Enum
ShipCarrierDlvType (enum)
NoNone
ShipCarrierExpeditedShipmentYes/No flag for an expedited shipment.Enum
ShipCarrierExpeditedShipment
NoYes (enum)
NoNone
ShipCarrierFuelSurchargeYes/No flag for charging a fuel surcharge.Enum
ShipCarrierFuelSurcharge
NoYes (enum)
NoNone
ShipCarrierIdID of the carrier.String
ShipCarrierId
NoNone
ShipCarrierNameName of the third-party carrier.String (100)
LogisticsShipCarrierName
NoNone
ShipCarrierPostalAddressRecord ID of the carrier's postal address.Int64
LogisticsPostalAddressRecId
NoNone
ShipCarrierResidentialYes/No flag for a residential delivery destination.Enum
ShipCarrierResidentialDest
NoYes (enum)
NoNone
ShippingDateConfirmedConfirmed ship date.Date
SalesShippingDateConfirmed
NoNone
ShippingDateRequestedRequested ship date.Date
SalesShippingDateRequested
YesNone
SkipCreateMarkupYes/No flag to skip creating charges.Enum
MarkupSkipCreateMarkup
NoYes (enum)
NoNone
SkipLineUpdateYes/No flag; its purpose is not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
SkipUpdateControls whether intercompany updates are skipped: no, internal, intercompany or both.Enum
InterCompanySkipUpdate (enum)
NoNone
smmCampaignIdID of the campaign linked to the order.String
smmCampaignId
NoNone
smmSalesAmountTotalTotal amount of the order; currency not stated in the metadata.Real
smmSalesAmountTotal
NoNone
SourceCertificate_MXYes/No flag for a source certificate, used for Mexico.Enum
SourceCertificate_MX
NoYes (enum)
NoNone
SourceDocumentHeaderRecord ID of the source document header.Int64
RefRecId
NoNone
StatProcIdStatistics procedure code for Intrastat.String
IntrastatProcId
NoNone
SubBillBillToNameBill-to name for subscription billing.String (100)
LogisticsDeliveryName
NoNone
SubBillBillToPostalAddressRecord ID of the bill-to postal address for subscription billing.Int64
RefRecId
NoNone
SubBillCreatedFromSBYes/No flag showing the order was created by subscription billing.Enum
SubBillCreatedFromSB
NoYes (enum)
NoNone
SubBillSuppressChildItemsYes/No flag to hide child items when printing.Enum
SubBillSuppressChildItems
NoYes (enum)
NoNone
SystemEntryChangePolicyPlaceholder value linked to the price and discount policy for system entries.low confidenceInt64
PriceDiscPolicySystem
NoNone
SystemEntrySourcePlaceholder value showing the source of system-entered price and discount data.low confidenceEnum
PriceDiscSystemSource (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TAMDeductionIDDeduction ID.low confidenceString (20)
TAMDeductionID
NoNone
TAMRebateReferenceRebate reference text.low confidenceString (60)
TAMRebateReference
NoNone
TaxGroupSales tax group of the order.String
TaxGroup
NoNone
TaxIdRecord ID of the tax registration number.Int64
TaxRegistrationRecId
NoNone
TaxPeriodPaymentCode_PLVAT report date code, used for Poland.String
PlTaxPeriodPaymentCode
NoNone
TCSGroup_INWithholding tax group for tax collected at source, used for India.String
TaxWithholdGroup
NoNone
TDSGroup_INWithholding tax group for tax deducted at source, used for India.String
TaxWithholdGroup
NoNone
TouchedYes/No flag showing whether the order was updated.low confidenceEnum
TradeTouched
NoYes (enum)
NoNone
TransactionCodeTransaction code for Intrastat reporting.String
IntrastatTransactionCodeId
NoNone
TransportTransport mode code for Intrastat reporting.String
IntrastatTransport
NoNone
TransportationDocumentRecord ID of the transportation details.Int64
TransportationDocumentRecId
NoNone
UnitedVATInvoice_LTYes/No flag for a united VAT invoice, used for Lithuania.Enum
UnitedVATInvoice_LT
NoYes (enum)
NoNone
URLInternet address for the order.String (255)
URL
NoNone
VATNumTax exempt number of the customer.String (20)
VATNumJournal
NoNone
VATNumRecIdRecord ID of the tax exempt number.Int64
RefRecId
NoNone
VATNumTableTypeShows where the tax exempt number comes from: none, tax registration or VAT number table.Enum
TaxExemptNumberSourceType (enum)
NoNone
WorkerSalesResponsibleRecord ID of the worker responsible for the sale.Int64
WorkerSalesResponsible
NoNone
WorkerSalesTakerRecord ID of the worker who took the order.Int64
SalesTaker
NoNone

Indexes (1)

  • SalesIdxPrimary indexReplacement key

    SalesId

    Unique, alternate key.

Relations (1)

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

Get this data out

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

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

Email sales@drdynamics.co.uk