Class NSQuoteEntity

Quote methods.

Constructors

NSQuoteEntity()

Initializes a new instance of the NSQuoteEntity class.

Declaration

NSQuoteEntity

Methods

GetAcceptedQuoteAlternativeId()

Declaration

Integer GetAcceptedQuoteAlternativeId()

Examples

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

Returns

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

GetActiveQuoteVersionId()

Declaration

Integer GetActiveQuoteVersionId()

Examples

NSQuoteEntity 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

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

Returns

Type Description
Integer The ID of the main Quote Document.

GetERPOrderKey()

Declaration

String GetERPOrderKey()

Examples

NSQuoteEntity 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

NSQuoteEntity 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).

GetOrderComment()

Declaration

String GetOrderComment()

Examples

NSQuoteEntity 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

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

Returns

Type Description
String Customer's Purchase order number.

GetPreferredEmailCulture()

Declaration

String GetPreferredEmailCulture()

Examples

NSQuoteEntity 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

NSQuoteEntity 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

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

Returns

Type Description
Integer Primary key.

GetQuoteVersions()

Declaration

NSQuoteVersion[] GetQuoteVersions()

Examples

NSQuoteEntity thing;
NSQuoteVersion[] quoteVersions = thing.GetQuoteVersions();

Returns

Type Description
NSQuoteVersion[] Array og QuoteVersions connected to the quote.

GetSaleId()

Declaration

Integer GetSaleId()

Examples

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

Returns

Type Description
Integer The foreign key to the corresponding sale.

GetUseValuesFromQuote()

Declaration

Integer GetUseValuesFromQuote()

Examples

NSQuoteEntity 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

NSQuoteEntity 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. Set when the user is marking a quote as accepted.

Returns

Type Description
Void

SetActiveQuoteVersionId(Integer)

Declaration

Void SetActiveQuoteVersionId(Integer activeQuoteVersionId)

Examples

NSQuoteEntity 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

NSQuoteEntity 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

NSQuoteEntity 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

NSQuoteEntity 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

SetOrderComment(String)

Declaration

Void SetOrderComment(String orderComment)

Examples

NSQuoteEntity 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

NSQuoteEntity 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

NSQuoteEntity 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

NSQuoteEntity 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

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

Parameters

Type Name Description
Integer quoteId Primary key.

Returns

Type Description
Void

SetQuoteVersions(NSQuoteVersion[])

Declaration

Void SetQuoteVersions(NSQuoteVersion[] quoteVersions)

Examples

NSQuoteEntity thing;
NSQuoteVersion[] quoteVersions;
thing.SetQuoteVersions(quoteVersions);

Parameters

Type Name Description
NSQuoteVersion[] quoteVersions Array og QuoteVersions connected to the quote.

Returns

Type Description
Void

SetSaleId(Integer)

Declaration

Void SetSaleId(Integer saleId)

Examples

NSQuoteEntity 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

NSQuoteEntity 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