Class NSSaleTypeEntity

Constructors

NSSaleTypeEntity()

Initializes a new instance of the NSSaleTypeEntity class.

Declaration

NSSaleTypeEntity

Methods

GetAllowQuoteAlternatives()

Declaration

Bool GetAllowQuoteAlternatives()

Examples

NSSaleTypeEntity thing;
Bool allowQuoteAlternatives = thing.GetAllowQuoteAlternatives();

Returns

Type Description
Bool Can quotes linked to sales of this type, have multiple Alternatives.

GetConfirmationLinesTemplate()

Declaration

Integer GetConfirmationLinesTemplate()

Examples

NSSaleTypeEntity thing;
Integer confirmationLinesTemplate = thing.GetConfirmationLinesTemplate();

Returns

Type Description
Integer The template that this sale type should use when producing the order confirmation lines document; the template must have DocTmplQuoteType=ConfirmationLines.

GetDefaultQuoteValidity()

Declaration

Integer GetDefaultQuoteValidity()

Examples

NSSaleTypeEntity thing;
Integer defaultQuoteValidity = thing.GetDefaultQuoteValidity();

Returns

Type Description
Integer Default valid days for quotes linked to sales of this type (valid from quote transmission).

GetDeleted()

Declaration

Bool GetDeleted()

Examples

NSSaleTypeEntity thing;
Bool deleted = thing.GetDeleted();

Returns

Type Description
Bool 0 -> record is active 1 -> record is 'deleted' and should not be shown in lists.

GetDurationUnit()

Declaration

Integer GetDurationUnit()

Examples

NSSaleTypeEntity thing;
Integer durationUnit = thing.GetDurationUnit();

Returns

Type Description
Integer Units for the duration (day, week, whatever). See <xref href="CRMScript.NetServer.DurationUnit" data-throw-if-not-resolved="false"></xref>.

GetGroupQuoteLinesBy()

Declaration

Integer GetGroupQuoteLinesBy()

Examples

NSSaleTypeEntity thing;
Integer groupQuoteLinesBy = thing.GetGroupQuoteLinesBy();

Returns

Type Description
Integer Group quote lines by this field.

GetHasGuide()

Declaration

Bool GetHasGuide()

Examples

NSSaleTypeEntity thing;
Bool hasGuide = thing.GetHasGuide();

Returns

Type Description
Bool Does this sale type have a guide attached.

GetHasStakeholders()

Declaration

Bool GetHasStakeholders()

Examples

NSSaleTypeEntity thing;
Bool hasStakeholders = thing.GetHasStakeholders();

Returns

Type Description
Bool Does this sale type have stakeholders.

GetIsAutoAdvance()

Declaration

Bool GetIsAutoAdvance()

Examples

NSSaleTypeEntity thing;
Bool isAutoAdvance = thing.GetIsAutoAdvance();

Returns

Type Description
Bool Does the sale stage advance automatically, when the last guided activity in a stage is completed?

GetMaxDiscountPercent()

Declaration

Integer GetMaxDiscountPercent()

Examples

NSSaleTypeEntity thing;
Integer maxDiscountPercent = thing.GetMaxDiscountPercent();

Returns

Type Description
Integer The maximum discount in percent of total, if set, on quotes linked to sales of this type.

GetMaxDiscountPercentSet()

Declaration

Bool GetMaxDiscountPercentSet()

Examples

NSSaleTypeEntity thing;
Bool maxDiscountPercentSet = thing.GetMaxDiscountPercentSet();

Returns

Type Description
Bool Is there a limit, in percent, to the total discount on quotes linked to sales of this type.

GetMinEarningPercent()

Declaration

Integer GetMinEarningPercent()

Examples

NSSaleTypeEntity thing;
Integer minEarningPercent = thing.GetMinEarningPercent();

Returns

Type Description
Integer The minimum earning in percent of total, if set, on quotes linked to sales of this type.

GetMinEarningPercentSet()

Declaration

Bool GetMinEarningPercentSet()

Examples

NSSaleTypeEntity thing;
Bool minEarningPercentSet = thing.GetMinEarningPercentSet();

Returns

Type Description
Bool Is there a limit, in earning as percent of total, on quotes linked to sales of this type.

GetName()

Declaration

String GetName()

Examples

NSSaleTypeEntity thing;
String name = thing.GetName();

Returns

Type Description
String The list item.

GetQuoteLinesTemplate()

Declaration

Integer GetQuoteLinesTemplate()

Examples

NSSaleTypeEntity thing;
Integer quoteLinesTemplate = thing.GetQuoteLinesTemplate();

Returns

Type Description
Integer The template that this sale type should use when producing the product lines offer document; the template must have DocTmplQuoteType=QuoteLines.

GetRank()

Declaration

Integer GetRank()

Examples

NSSaleTypeEntity thing;
Integer rank = thing.GetRank();

Returns

Type Description
Integer Rank order.

GetSaleDuration()

Declaration

Integer GetSaleDuration()

Examples

NSSaleTypeEntity thing;
Integer saleDuration = thing.GetSaleDuration();

Returns

Type Description
Integer Expected number of dales from initiation to close of sale.

GetSaleTypeCatId()

Declaration

Integer GetSaleTypeCatId()

Examples

NSSaleTypeEntity thing;
Integer saleTypeCatId = thing.GetSaleTypeCatId();

Returns

Type Description
Integer Category of sale type, copied to sale.

GetSaleTypeId()

Declaration

Integer GetSaleTypeId()

Examples

NSSaleTypeEntity thing;
Integer saleTypeId = thing.GetSaleTypeId();

Returns

Type Description
Integer Primary key.

GetSortGroupLinesBy()

Declaration

Integer GetSortGroupLinesBy()

Examples

NSSaleTypeEntity thing;
Integer sortGroupLinesBy = thing.GetSortGroupLinesBy();

Returns

Type Description
Integer Sort group lines by this field.

GetStages()

Declaration

NSSelectableMDOListItem[] GetStages()

Examples

NSSaleTypeEntity thing;
NSSelectableMDOListItem[] stages = thing.GetStages();

Returns

Type Description
NSSelectableMDOListItem[] Stages, those associated with this NSSaleType are selected.

GetTooltip()

Declaration

String GetTooltip()

Examples

NSSaleTypeEntity thing;
String tooltip = thing.GetTooltip();

Returns

Type Description
String Tooltip or other description.

SetAllowQuoteAlternatives(Bool)

Declaration

Void SetAllowQuoteAlternatives(Bool allowQuoteAlternatives)

Examples

NSSaleTypeEntity thing;
Bool allowQuoteAlternatives;
thing.SetAllowQuoteAlternatives(allowQuoteAlternatives);

Parameters

Type Name Description
Bool allowQuoteAlternatives Can quotes linked to sales of this type, have multiple Alternatives.

Returns

Type Description
Void

SetConfirmationLinesTemplate(Integer)

Declaration

Void SetConfirmationLinesTemplate(Integer confirmationLinesTemplate)

Examples

NSSaleTypeEntity thing;
Integer confirmationLinesTemplate;
thing.SetConfirmationLinesTemplate(confirmationLinesTemplate);

Parameters

Type Name Description
Integer confirmationLinesTemplate The template that this sale type should use when producing the order confirmation lines document; the template must have DocTmplQuoteType=ConfirmationLines.

Returns

Type Description
Void

SetDefaultQuoteValidity(Integer)

Declaration

Void SetDefaultQuoteValidity(Integer defaultQuoteValidity)

Examples

NSSaleTypeEntity thing;
Integer defaultQuoteValidity;
thing.SetDefaultQuoteValidity(defaultQuoteValidity);

Parameters

Type Name Description
Integer defaultQuoteValidity Default valid days for quotes linked to sales of this type (valid from quote transmission).

Returns

Type Description
Void

SetDeleted(Bool)

Declaration

Void SetDeleted(Bool deleted)

Examples

NSSaleTypeEntity thing;
Bool deleted;
thing.SetDeleted(deleted);

Parameters

Type Name Description
Bool deleted 0 -&gt; record is active 1 -&gt; record is 'deleted' and should not be shown in lists.

Returns

Type Description
Void

SetDurationUnit(Integer)

Declaration

Void SetDurationUnit(Integer durationUnit)

Examples

NSSaleTypeEntity thing;
Integer durationUnit;
thing.SetDurationUnit(durationUnit);

Parameters

Type Name Description
Integer durationUnit Units for the duration (day, week, whatever) See <xref href="CRMScript.NetServer.DurationUnit" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetGroupQuoteLinesBy(Integer)

Declaration

Void SetGroupQuoteLinesBy(Integer groupQuoteLinesBy)

Examples

NSSaleTypeEntity thing;
Integer groupQuoteLinesBy;
thing.SetGroupQuoteLinesBy(groupQuoteLinesBy);

Parameters

Type Name Description
Integer groupQuoteLinesBy Group quote lines by this field.

Returns

Type Description
Void

SetHasGuide(Bool)

Declaration

Void SetHasGuide(Bool hasGuide)

Examples

NSSaleTypeEntity thing;
Bool hasGuide;
thing.SetHasGuide(hasGuide);

Parameters

Type Name Description
Bool hasGuide Does this sale type have a guide attached.

Returns

Type Description
Void

SetHasStakeholders(Bool)

Declaration

Void SetHasStakeholders(Bool hasStakeholders)

Examples

NSSaleTypeEntity thing;
Bool hasStakeholders;
thing.SetHasStakeholders(hasStakeholders);

Parameters

Type Name Description
Bool hasStakeholders Does this sale type have stakeholders.

Returns

Type Description
Void

SetIsAutoAdvance(Bool)

Declaration

Void SetIsAutoAdvance(Bool isAutoAdvance)

Examples

NSSaleTypeEntity thing;
Bool isAutoAdvance;
thing.SetIsAutoAdvance(isAutoAdvance);

Parameters

Type Name Description
Bool isAutoAdvance Does the sale stage advance automatically, when the last guided activity in a stage is completed?

Returns

Type Description
Void

SetMaxDiscountPercent(Integer)

Declaration

Void SetMaxDiscountPercent(Integer maxDiscountPercent)

Examples

NSSaleTypeEntity thing;
Integer maxDiscountPercent;
thing.SetMaxDiscountPercent(maxDiscountPercent);

Parameters

Type Name Description
Integer maxDiscountPercent The maximum discount in percent of total, if set, on quotes linked to sales of this type.

Returns

Type Description
Void

SetMaxDiscountPercentSet(Bool)

Declaration

Void SetMaxDiscountPercentSet(Bool maxDiscountPercentSet)

Examples

NSSaleTypeEntity thing;
Bool maxDiscountPercentSet;
thing.SetMaxDiscountPercentSet(maxDiscountPercentSet);

Parameters

Type Name Description
Bool maxDiscountPercentSet Is there a limit, in percent, to the total discount on quotes linked to sales of this type.

Returns

Type Description
Void

SetMinEarningPercent(Integer)

Declaration

Void SetMinEarningPercent(Integer minEarningPercent)

Examples

NSSaleTypeEntity thing;
Integer minEarningPercent;
thing.SetMinEarningPercent(minEarningPercent);

Parameters

Type Name Description
Integer minEarningPercent The minimum earning in percent of total, if set, on quotes linked to sales of this type.

Returns

Type Description
Void

SetMinEarningPercentSet(Bool)

Declaration

Void SetMinEarningPercentSet(Bool minEarningPercentSet)

Examples

NSSaleTypeEntity thing;
Bool minEarningPercentSet;
thing.SetMinEarningPercentSet(minEarningPercentSet);

Parameters

Type Name Description
Bool minEarningPercentSet Is there a limit, in earning as percent of total, on quotes linked to sales of this type.

Returns

Type Description
Void

SetName(String)

Declaration

Void SetName(String name)

Examples

NSSaleTypeEntity thing;
String name;
thing.SetName(name);

Parameters

Type Name Description
String name The list item.

Returns

Type Description
Void

SetQuoteLinesTemplate(Integer)

Declaration

Void SetQuoteLinesTemplate(Integer quoteLinesTemplate)

Examples

NSSaleTypeEntity thing;
Integer quoteLinesTemplate;
thing.SetQuoteLinesTemplate(quoteLinesTemplate);

Parameters

Type Name Description
Integer quoteLinesTemplate The template that this sale type should use when producing the product lines offer document; the template must have DocTmplQuoteType=QuoteLines.

Returns

Type Description
Void

SetRank(Integer)

Declaration

Void SetRank(Integer rank)

Examples

NSSaleTypeEntity thing;
Integer rank;
thing.SetRank(rank);

Parameters

Type Name Description
Integer rank Rank order.

Returns

Type Description
Void

SetSaleDuration(Integer)

Declaration

Void SetSaleDuration(Integer saleDuration)

Examples

NSSaleTypeEntity thing;
Integer saleDuration;
thing.SetSaleDuration(saleDuration);

Parameters

Type Name Description
Integer saleDuration Expected number of dales from initiation to close of sale.

Returns

Type Description
Void

SetSaleTypeCatId(Integer)

Declaration

Void SetSaleTypeCatId(Integer saleTypeCatId)

Examples

NSSaleTypeEntity thing;
Integer saleTypeCatId;
thing.SetSaleTypeCatId(saleTypeCatId);

Parameters

Type Name Description
Integer saleTypeCatId Category of sale type, copied to sale.

Returns

Type Description
Void

SetSaleTypeId(Integer)

Declaration

Void SetSaleTypeId(Integer saleTypeId)

Examples

NSSaleTypeEntity thing;
Integer saleTypeId;
thing.SetSaleTypeId(saleTypeId);

Parameters

Type Name Description
Integer saleTypeId Primary key.

Returns

Type Description
Void

SetSortGroupLinesBy(Integer)

Declaration

Void SetSortGroupLinesBy(Integer sortGroupLinesBy)

Examples

NSSaleTypeEntity thing;
Integer sortGroupLinesBy;
thing.SetSortGroupLinesBy(sortGroupLinesBy);

Parameters

Type Name Description
Integer sortGroupLinesBy Sort group lines by this field.

Returns

Type Description
Void

SetStages(NSSelectableMDOListItem[])

Declaration

Void SetStages(NSSelectableMDOListItem[] stages)

Examples

NSSaleTypeEntity thing;
NSSelectableMDOListItem[] stages;
thing.SetStages(stages);

Parameters

Type Name Description
NSSelectableMDOListItem[] stages Stages, those associated with this NSSaleType are selected.

Returns

Type Description
Void

SetTooltip(String)

Declaration

Void SetTooltip(String tooltip)

Examples

NSSaleTypeEntity thing;
String tooltip;
thing.SetTooltip(tooltip);

Parameters

Type Name Description
String tooltip Tooltip or other description.

Returns

Type Description
Void