Quote Table (34)

Quote root level, at most one per Sale, always connected to one Sale

Fields

NameDescriptionTypeNull
quote_idPrimary keyPK
SaleIdThe foreign key to the corresponding saleFK sale
QuoteConnectionIdThe connection in the CRM system to where this quote came from. Identifies the ERP connection used for this quote. Each quote is bound to one and only one connection.FK QuoteConnection
ERPQuoteKeyForeign key of quote (if available). The key in the ERP system that identifies this sale’s Quote (as opposed to the later Order information)String(254)
ERPOrderKeyThe key in the ERP system that identifies this sale’s Order, as transferred and possibly later edited in the ERP system. Only filled out if there exists a corresponding order representation of the quote in the ERP system.String(254)
ActiveQuoteVersionIdThe primary key of the Quote Version that is currently active. (The active version will always be the latest version.)FK QuoteVersion
AcceptedQuoteAlternativeIdThe primary key of the Quote Alternative which was finally accepted by the customer. Set when the user is marking a quote as accepted.FK QuoteAlternative
UseValuesFromQuoteIf true, then the Earning, Earning_Percent and Amount fields are populated from the QuoteVersion.QuoteAlternative (current revision, most-likely alternative).Bool
DocumentIdThe ID of the main Quote DocumentFK document
PreferredEmailCultureWhen emails are sent (offer or confirmation), a language can be chosen in the GUI; this field saves the most recent choice and can be used to default the next such choice. Default-default is user’s current languageString(19)
PoNumberCustomer’s Purchase order numberString(127)
OrderCommentA comment that is intended for the Invoice, Order, Packing list and similar stages - AFTER the quote has become an order and goes to ERP for processingString(2046)
registeredRegistered whenUtcDateTime
registered_associate_idRegistered by whomFK associate
updatedLast updated whenUtcDateTime
updated_associate_idLast updated by whomFK associate
updatedCountNumber of updates made to this recordUShort

Quote table relationship diagram

Indexes

FieldsTypesDescription
quote_idPKClustered, Unique

Relationships

TableDescription
associateEmployees, resources and other users - except for External persons
documentDocuments, this table is an extension of the Appointment table. There is always a corresponding appointment record; the relation between appointment and document is navigable in both directions. A document-type appointment record always has a corresponding document record and a record in VisibleFor specifying who may see this.
QuoteAlternativeQuote Version is made up of one or more Alternatives. One of 1..n possible alternatives in a Quote Version. The reason we have alternatives is that a quote can say to a customer, “we can solve you problem in two (or more) different ways, with different technology and sideeffects (and price)”. An Alternative may have discounts on the total amount. The Alternative tracks whether the user on the order level entered the Discount , Earning amount or the TotalPrice fields so that the discount and earning and total can be re-calculated correctly when Quote Lines are added or changed.
QuoteConnectionPrimary key in the CRM database. Definition of a connection to an external system, for the Quote system.
QuoteVersionThere may be multiple Versions of a Quote, with one of them active
saleSales For every Sale record edited through the SuperOffice GUI, a copy of the current version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Replication Flags

  • Area Management controlled table. Contents replicated to satellites and traveller databases.
  • Copy to satellite and travel prototypes.

Security Flags

  • Sentry controls access to items in this table using user’s Role and data rights matrix.