Class NSQuote

Quote carrier with the active quote version and favorite alternative.

Constructors

NSQuote()

Initializes a new instance of the NSQuote class.

Declaration

NSQuote

Methods

GetAcceptedQuoteAlternativeId()

Declaration

Integer GetAcceptedQuoteAlternativeId()

Examples

NSQuote thing;
Integer acceptedQuoteAlternativeId = thing.GetAcceptedQuoteAlternativeId();

Returns

Type Description
Integer The primary key of the Quote Alternative which was finally accepted by the customer.

GetActiveQuoteVersion()

Declaration

NSQuoteVersion GetActiveQuoteVersion()

Examples

NSQuote thing;
NSQuoteVersion activeQuoteVersion = thing.GetActiveQuoteVersion();

Returns

Type Description
NSQuoteVersion The active quote version for the quote.

GetActiveQuoteVersionId()

Declaration

Integer GetActiveQuoteVersionId()

Examples

NSQuote thing;
Integer activeQuoteVersionId = thing.GetActiveQuoteVersionId();

Returns

Type Description
Integer The primary key of the Quote Version that is currently active.

GetDocumentId()

Declaration

Integer GetDocumentId()

Examples

NSQuote thing;
Integer documentId = thing.GetDocumentId();

Returns

Type Description
Integer The ID of the main Quote Document.

GetERPOrderKey()

Declaration

String GetERPOrderKey()

Examples

NSQuote thing;
String eRPOrderKey = thing.GetERPOrderKey();

Returns

Type Description
String The key in the ERP system that identifies this sale's Order, as transferred and possibly later edited in the ERP system.

GetERPQuoteKey()

Declaration

String GetERPQuoteKey()

Examples

NSQuote thing;
String eRPQuoteKey = thing.GetERPQuoteKey();

Returns

Type Description
String Foreign key of quote (if available). The key in the ERP system that identifies this sale's Quote (as opposed to the later Order information).

GetFavoriteQuoteAlternative()

Declaration

NSQuoteAlternative GetFavoriteQuoteAlternative()

Examples

NSQuote thing;
NSQuoteAlternative favoriteQuoteAlternative = thing.GetFavoriteQuoteAlternative();

Returns

Type Description
NSQuoteAlternative The favorite quote alternative for the quote and active quote version.

GetOrderComment()

Declaration

String GetOrderComment()

Examples

NSQuote thing;
String orderComment = thing.GetOrderComment();

Returns

Type Description
String A 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 processing.

GetPoNumber()

Declaration

String GetPoNumber()

Examples

NSQuote thing;
String poNumber = thing.GetPoNumber();

Returns

Type Description
String Customer's Purchase order number.

GetPreferredEmailCulture()

Declaration

String GetPreferredEmailCulture()

Examples

NSQuote thing;
String preferredEmailCulture = thing.GetPreferredEmailCulture();

Returns

Type Description
String When 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 language.

GetQuoteConnectionId()

Declaration

Integer GetQuoteConnectionId()

Examples

NSQuote thing;
Integer quoteConnectionId = thing.GetQuoteConnectionId();

Returns

Type Description
Integer The 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.

GetQuoteId()

Declaration

Integer GetQuoteId()

Examples

NSQuote thing;
Integer quoteId = thing.GetQuoteId();

Returns

Type Description
Integer Primary key.

GetSaleId()

Declaration

Integer GetSaleId()

Examples

NSQuote thing;
Integer saleId = thing.GetSaleId();

Returns

Type Description
Integer The foreign key to the corresponding sale.

GetUseValuesFromQuote()

Declaration

Integer GetUseValuesFromQuote()

Examples

NSQuote thing;
Integer useValuesFromQuote = thing.GetUseValuesFromQuote();

Returns

Type Description
Integer If true, then the Earning, Earning_Percent and Amount fields are populated from the QuoteVersion.QuoteAlternative (current revision, most-likely alternative).

SetAcceptedQuoteAlternativeId(Integer)

Declaration

Void SetAcceptedQuoteAlternativeId(Integer acceptedQuoteAlternativeId)

Examples

NSQuote thing;
Integer acceptedQuoteAlternativeId;
thing.SetAcceptedQuoteAlternativeId(acceptedQuoteAlternativeId);

Parameters

Type Name Description
Integer acceptedQuoteAlternativeId The primary key of the Quote Alternative which was finally accepted by the customer.

Returns

Type Description
Void

SetActiveQuoteVersion(NSQuoteVersion)

Declaration

Void SetActiveQuoteVersion(NSQuoteVersion activeQuoteVersion)

Examples

NSQuote thing;
NSQuoteVersion activeQuoteVersion;
thing.SetActiveQuoteVersion(activeQuoteVersion);

Parameters

Type Name Description
NSQuoteVersion activeQuoteVersion The active quote version for the quote.

Returns

Type Description
Void

SetActiveQuoteVersionId(Integer)

Declaration

Void SetActiveQuoteVersionId(Integer activeQuoteVersionId)

Examples

NSQuote thing;
Integer activeQuoteVersionId;
thing.SetActiveQuoteVersionId(activeQuoteVersionId);

Parameters

Type Name Description
Integer activeQuoteVersionId The primary key of the Quote Version that is currently active.

Returns

Type Description
Void

SetDocumentId(Integer)

Declaration

Void SetDocumentId(Integer documentId)

Examples

NSQuote thing;
Integer documentId;
thing.SetDocumentId(documentId);

Parameters

Type Name Description
Integer documentId The ID of the main Quote Document.

Returns

Type Description
Void

SetERPOrderKey(String)

Declaration

Void SetERPOrderKey(String eRPOrderKey)

Examples

NSQuote thing;
String eRPOrderKey;
thing.SetERPOrderKey(eRPOrderKey);

Parameters

Type Name Description
String eRPOrderKey The 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.

Returns

Type Description
Void

SetERPQuoteKey(String)

Declaration

Void SetERPQuoteKey(String eRPQuoteKey)

Examples

NSQuote thing;
String eRPQuoteKey;
thing.SetERPQuoteKey(eRPQuoteKey);

Parameters

Type Name Description
String eRPQuoteKey Foreign key of quote (if available). The key in the ERP system that identifies this sale's Quote (as opposed to the later Order information).

Returns

Type Description
Void

SetFavoriteQuoteAlternative(NSQuoteAlternative)

Declaration

Void SetFavoriteQuoteAlternative(NSQuoteAlternative favoriteQuoteAlternative)

Examples

NSQuote thing;
NSQuoteAlternative favoriteQuoteAlternative;
thing.SetFavoriteQuoteAlternative(favoriteQuoteAlternative);

Parameters

Type Name Description
NSQuoteAlternative favoriteQuoteAlternative The favorite quote alternative for the quote and active quote version.

Returns

Type Description
Void

SetOrderComment(String)

Declaration

Void SetOrderComment(String orderComment)

Examples

NSQuote thing;
String orderComment;
thing.SetOrderComment(orderComment);

Parameters

Type Name Description
String orderComment A 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 processing.

Returns

Type Description
Void

SetPoNumber(String)

Declaration

Void SetPoNumber(String poNumber)

Examples

NSQuote thing;
String poNumber;
thing.SetPoNumber(poNumber);

Parameters

Type Name Description
String poNumber Customer's Purchase order number.

Returns

Type Description
Void

SetPreferredEmailCulture(String)

Declaration

Void SetPreferredEmailCulture(String preferredEmailCulture)

Examples

NSQuote thing;
String preferredEmailCulture;
thing.SetPreferredEmailCulture(preferredEmailCulture);

Parameters

Type Name Description
String preferredEmailCulture When 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 language.

Returns

Type Description
Void

SetQuoteConnectionId(Integer)

Declaration

Void SetQuoteConnectionId(Integer quoteConnectionId)

Examples

NSQuote thing;
Integer quoteConnectionId;
thing.SetQuoteConnectionId(quoteConnectionId);

Parameters

Type Name Description
Integer quoteConnectionId The 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.

Returns

Type Description
Void

SetQuoteId(Integer)

Declaration

Void SetQuoteId(Integer quoteId)

Examples

NSQuote thing;
Integer quoteId;
thing.SetQuoteId(quoteId);

Parameters

Type Name Description
Integer quoteId Primary key.

Returns

Type Description
Void

SetSaleId(Integer)

Declaration

Void SetSaleId(Integer saleId)

Examples

NSQuote thing;
Integer saleId;
thing.SetSaleId(saleId);

Parameters

Type Name Description
Integer saleId The foreign key to the corresponding sale.

Returns

Type Description
Void

SetUseValuesFromQuote(Integer)

Declaration

Void SetUseValuesFromQuote(Integer useValuesFromQuote)

Examples

NSQuote thing;
Integer useValuesFromQuote;
thing.SetUseValuesFromQuote(useValuesFromQuote);

Parameters

Type Name Description
Integer useValuesFromQuote If true, then the Earning, Earning_Percent and Amount fields are populated from the QuoteVersion.QuoteAlternative (current revision, most-likely alternative).

Returns

Type Description
Void