Table

SalesQuotationHeaderTmp

Quotations

Temporary table that holds quotation header data for the quotation printout. It has no key. Each row combines company details, bank and registration data, customer references, totals, discounts, sales tax amounts and print settings. Many amounts come in a normal version and an Euro version. It links to quotation journals, confirmation journals, sales orders and currencies.

Table name
SalesQuotationHeaderTmp
Module
Sales and marketing
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (81)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CashDiscCash discount amount.Real
CashDiscAmount
NoNone
CashDiscEuroCash discount amount in the Euro version of the totals.low confidenceReal
CashDiscAmount
NoNone
CashDiscOnInvoiceYes/No flag about cash discount on the invoice; the exact meaning is not clear from the metadata.low confidenceEnum
NoYes (enum)
NoNone
CashDiscPercentCash discount as a percentage.Real
DiscPct
NoNone
CashDiscTxtFree text describing the cash discount.String (160)
CashDiscFreeTxt
NoNone
CompanyAddressAddress of the company.String (250)
Addressing
NoNone
CompanyBankAccountNameName of the company bank account.String (60)
Name
NoNone
CompanyBankAccountNumCompany bank account number.String (48)
BankAccount
NoNone
CompanyBankAccountRegNumRouting number of the company bank.String (12)
BankRegNum
NoNone
CompanyCommercialRegisterCommercial register where the company is kept.String (40)
CommercialRegister
NoNone
CompanyCommercialRegisterInsetNumberInset number in the commercial register.String
CommercialRegisterInsetNumber
NoNone
CompanyCommercialRegisterSectionSection of the commercial register.String
CommercialRegisterSection
NoNone
CompanyCoRegNumCompany tax registration number.String (25)
CompanyCoRegNum
NoNone
CompanyCurrencyCodeCurrency code of the company, pointing to the Currency table.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
CompanyEmailCompany email address.String (80)
Email
NoNone
CompanyEnterpriseNumberEnterprise number of the company for tax purposes.String (50)
TaxEnterpriseNumber
NoNone
CompanyGiroBank giro number of the company.String (48)
GiroNum
NoNone
Container
Bitmap
NoNone
CompanyNameName of the company.String (60)
Name
NoNone
CompanyPhoneCompany telephone number.String (20)
Phone
NoNone
CompanyRegNumCompany routing or registration number.low confidenceString (25)
CompanyRegNum
NoNone
CompanyTelefaxCompany fax number.String (20)
TeleFax
NoNone
CompanyVATNumTax exempt number of the company.String (20)
VATNum
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoNone
CurrencyCodeCurrency code of the quotation, pointing to the Currency table.String (3)
CustCurrencyCode
NoCurrency.CurrencyCodeNone
CustomerRefReference given by the customer.String (60)
CustRef
NoNone
CustQuotationConfirmJourSystem record ID of the quotation confirmation header.Int64
CustQuotationConfirmJourRecId
NoCustQuotationConfirmJour.RecIdNone
CustQuotationJourSystem record ID of the quotation journal header.Int64
CustQuotationJourRecId
NoCustQuotationJour.RecIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryAddressDelivery address.String (250)
LogisticsAddressing
NoNone
DeliveryNameName of the delivery recipient.String (160)
CustName
NoNone
DocuConclusionClosing text of the quotation document.String (-1)
smmQuotationDocuConclusionText
NoNone
DocuIntroIntroduction text of the quotation document.String (-1)
smmQuotationDocuIntroText
NoNone
DocuRefMainNotesMain note for the document.String (-1)
Notes
NoNone
DocuTitleTitle of the quotation document.String (70)
smmQuotationDocuTitle
NoNone
EndDiscTotal discount on the quotation header.Real
SalesEndDiscAmount
NoNone
EndDiscEuroTotal discount in the Euro version of the totals.low confidenceReal
SalesEndDiscAmount
NoNone
Enterpriseregister_NODescription of the enterprise register, used for Norway.low confidenceString (60)
Description
NoNone
EuroCurrencyCodeTriangulation currency code, pointing to the Currency table.String (3)
EuroCurrencyCode
NoCurrency.CurrencyCodeNone
FormLetterRemarksFree-form remark printed on the document.String (-1)
FormLetterTxt
NoNone
NetAmountNet amount of the quotation in the transaction currency.Real
AmountCurNet
NoNone
NetAmountEuroNet amount in the Euro version of the totals.low confidenceReal
AmountCurNet
NoNone
OrderAccountRegNumRouting or registration number of the ordering account.low confidenceString (25)
CompanyRegNum
NoNone
OrderAccountVATNumTax exempt number of the ordering customer.String (20)
VATNum
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentCodePayment terms text.String (-1)
PaymTxt
NoNone
PrePrintLevelLevel of preprinted paper used: blank paper, partly preprinted or preprinted.Enum
PrePrintLevel (enum)
NoNone
Enum
NoYes (enum)
NoNone
PrintTaxAmountSalesExchangeRateYes/No flag for printing the sales tax amount using the sales exchange rate.low confidenceEnum
NoYes (enum)
NoNone
PurchaseOrderCustomer requisition or purchase order number.String (20)
CustPurchaseOrder
NoNone
QuotationAmountQuotation amount in the transaction currency.Real
AmountCur
NoNone
QuotationAmountEuroQuotation amount in the Euro version of the totals.low confidenceReal
AmountCur
NoNone
QuotationDateDate of the quotation.Date
TransDate
NoNone
QuotationDocNumDocument number of the quotation.String (20)
QuotationDocNum
NoNone
QuotationIdQuotation number.String (20)
QuotationId
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
RespiteDateDeadline date for the quotation.low confidenceDate
TransDate
NoNone
RoundOffRounding amount.Real
RoundOff
NoNone
RoundOffEuroRounding amount in the Euro version of the totals.low confidenceReal
RoundOff
NoNone
SalesAdministratorPersonnel number of the person who took the sale.String (25)
SalesTakerPersonnelNumber
NoNone
SalesBalanceSales balance in the transaction currency.Real
AmountCur
NoNone
SalesBalanceEuroSales balance in the Euro version of the totals.low confidenceReal
AmountCur
NoNone
SalesIdSales order number, pointing to the Sales orders table.String (20)
SalesIdBase
NoSalesTable.SalesIdNone
SalesTaxExchangeRateExchange rate used for sales tax reporting.Real
CurrencyExchangeRateReport
NoNone
ShowCompanyVATNumYes/No flag for showing the company tax exempt number.Enum
NoYesId
NoYes (enum)
NoNone
SumMarkupTotal charges.Real
MarkupSumSales
NoNone
SumMarkupEuroTotal charges in the Euro version of the totals.low confidenceReal
MarkupSumSales
NoNone
SumTaxTotal sales tax amount; the currency is not stated in the metadata.Real
TaxAmountCur
NoNone
SumTaxEuroTotal sales tax amount in the Euro version of the totals.low confidenceReal
TaxAmountCur
NoNone
SumTaxMSTTotal sales tax amount in the accounting currency.Real
TaxAmount
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxableBalancePart of the balance that is taxable.Real
TaxTaxableAmountCur
NoNone
TaxableBalanceEuroTaxable balance in the Euro version of the totals.low confidenceReal
TaxTaxableAmountCur
NoNone
TaxFreeBalancePart of the balance that is not taxable.Real
TaxTaxFreeAmountCur
NoNone
TaxFreeBalanceEuroNontaxable balance in the Euro version of the totals.low confidenceReal
TaxTaxFreeAmountCur
NoNone
TaxPrintTaxFreeBalanceYes/No flag to show the tax exempt balance separately on forms.Enum
TaxPrintTaxFreeBalance
NoYes (enum)
NoNone
TaxSpecPrintLevelLevel of sales tax specification printed, such as none or registration currency.Enum
TaxSpecPrintLevel (enum)
NoNone
TotalTaxBaseAmountTotal original amount on which sales tax is based.Real
TaxBaseCur
NoNone
TotalTaxBaseAmountEuroTotal tax base amount in the Euro version of the totals.low confidenceReal
TaxBaseCur
NoNone

Relations (6)

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

  • CompanyCurrency → Currency

    Join on CompanyCurrencyCode = Currency.CurrencyCode

    Many SalesQuotationHeaderTmp records → zero or one Currency record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many SalesQuotationHeaderTmp records → zero or one Currency record

  • EuroCurrency → Currency

    Join on EuroCurrencyCode = Currency.CurrencyCode

    Many SalesQuotationHeaderTmp records → zero or one Currency record

  • SalesTable → SalesTable

    Join on SalesId = SalesTable.SalesId

    Many SalesQuotationHeaderTmp records → zero or one SalesTable record

  • CustQuotationConfirmJour → CustQuotationConfirmJour

    Join on CustQuotationConfirmJour = CustQuotationConfirmJour.RecId

    Many SalesQuotationHeaderTmp records → exactly one CustQuotationConfirmJour record

  • CustQuotationJour → CustQuotationJour

    Join on CustQuotationJour = CustQuotationJour.RecId

    Many SalesQuotationHeaderTmp records → exactly one CustQuotationJour record

Get this data out

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

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

Email sales@drdynamics.co.uk