SaleType Table (149)

SaleType MDO list item table. Type of sale - large solution, incremental, whatever fits the organization

Fields

NameDescriptionTypeNull
SaleType_IdPrimary keyPK
nameThe list itemString(239)
rankRank orderUShort
tooltipTooltip or other descriptionString(254)
deleted0 -> record is active 1 -> record is ‘deleted’ and should not be shown in listsUShort
saleDurationExpected number of dales from initiation to close of saleInt
durationUnitUnits for the duration (day, week, whatever)Enum DurationUnit
hasGuideDoes this sale type have a guide attachedBool
isAutoAdvanceDoes the sale stage advance automatically, when the last guided activity in a stage is completed?Bool
saleTypeCat_idCategory of sale type, copied to saleFK SaleTypeCat
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
hasStakeholdersDoes this sale type have stakeholdersUShort
allowQuoteAlternativesCan quotes linked to sales of this type, have multiple AlternativesBool
defaultQuoteValidityDefault valid days for quotes linked to sales of this type (valid from quote transmission)Int
quoteLinesTemplateThe template that this sale type should use when producing the product lines offer document; the template must have DocTmplQuoteType=QuoteLinesFK DocTmpl
maxDiscountPercentSetIs there a limit, in percent, to the total discount on quotes linked to sales of this typeBool
minEarningPercentSetIs there a limit, in earning as percent of total, on quotes linked to sales of this typeBool
maxDiscountPercentThe maximum discount in percent of total, if set, on quotes linked to sales of this typeInt
minEarningPercentThe minimum earning in percent of total, if set, on quotes linked to sales of this typeInt
confirmationLinesTemplateThe template that this sale type should use when producing the order confirmation lines document; the template must have DocTmplQuoteType=ConfirmationLinesFK DocTmpl
documentGroupingFieldsComma-separated names of grouping fields for quote lines, when generating the documentsString(59)
archiveGroupingFieldsComma-separated names of grouping fields for quote lines, in the quote lines archiveString(59)

SaleType table relationship diagram

Units of duration - from seconds to centuries. Used by both SaleType and ProjectType

| surationUnit | ID | Comment | |---|---|---| | Second | 1 | Duration is in Seconds | | Minute |  2 | Duration is in Minutes | | Hour | 3 | Duration is in Hours | | Day | 4 | Duration is in Days | | Week | 5 | Duration is in Weeks | | Month | 6 | Duration is in Months | | Quarter | 7 | Duration is in Quarters | | HalfYear | 8 | Duration is in HalfYears | | Year | 9 | Duration is in Years | | Decade | 10 | Duration is in Decades | | Century | 11 | Duration is in Centurys | | Millenium | 12 | Duration is in Milleniums |

Indexes

FieldsTypesDescription
SaleType_IdPKClustered, Unique
nameString(239)Unique

Relationships

TableDescription
associateEmployees, resources and other users - except for External persons
DocTmplDocTmpl list table. Describes templates available for writing new documents.
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.
SaleHistMirror image of the Sale table, providing a full transaction history. Every time you edit a sale, the current record of the sale is also saved here.
SaleTypeCatCategory for sale type
SaleTypeGroupLinkUser group link table for SaleType, for MDO item hiding
SaleTypeHeadingLinkHeading link table for SaleType, for MDO headers
SaleTypeQuoteAttachmentDefault attachments to quotes linked to sales of this type
SaleTypeStageLinkMany-many link table between sale type and stage; and an anchor point for guide items
target_dimensionDefining target dimension

Replication Flags

  • Replicate changes DOWN from central to satellites and travellers.
  • Replicate changes UP from satellites and travellers back to central.
  • Copy to satellite and travel prototypes.

Security Flags

  • No access control via user’s Role.