Class NSQuoteVersion

Information about a version of the.

Constructors

NSQuoteVersion()

Initializes a new instance of the NSQuoteVersion class.

Declaration

NSQuoteVersion

Methods

GetApprovedBy()

Declaration

Integer GetApprovedBy()

Examples

NSQuoteVersion thing;
Integer approvedBy = thing.GetApprovedBy();

Returns

Type Description
Integer ID of associate who approved (or rejected approval) for this version.

GetApprovedRegisteredBy()

Declaration

Integer GetApprovedRegisteredBy()

Examples

NSQuoteVersion thing;
Integer approvedRegisteredBy = thing.GetApprovedRegisteredBy();

Returns

Type Description
Integer ID of associate who actually entered the approval; might be different from ApprovedBy (f.x. due to telephone consultation/approval).

GetApprovedRegisteredDate()

Declaration

DateTime GetApprovedRegisteredDate()

Examples

NSQuoteVersion thing;
DateTime approvedRegisteredDate = thing.GetApprovedRegisteredDate();

Returns

Type Description
DateTime When was approval granted or rejected.

GetApprovedText()

Declaration

String GetApprovedText()

Examples

NSQuoteVersion thing;
String approvedText = thing.GetApprovedText();

Returns

Type Description
String Text with comments on why approval was granted (or rejected)

GetArchivedState()

Declaration

Integer GetArchivedState()

Examples

NSQuoteVersion thing;
Integer archivedState = thing.GetArchivedState();

Returns

Type Description
Integer State that this quote version had, right before it was changed to Archived. See <xref href="CRMScript.NetServer.QuoteVersionState" data-throw-if-not-resolved="false"></xref>.

GetDeliveryCountryId()

Declaration

Integer GetDeliveryCountryId()

Examples

NSQuoteVersion thing;
Integer deliveryCountryId = thing.GetDeliveryCountryId();

Returns

Type Description
Integer Country of delivery address, typically copied from the contact record.

GetDescription()

Declaration

String GetDescription()

Examples

NSQuoteVersion thing;
String description = thing.GetDescription();

Returns

Type Description
String Description of Version. Potentially longer text description, typically used in a tooltip. Max 2K.

GetERPDeliveryTermsKey()

Declaration

String GetERPDeliveryTermsKey()

Examples

NSQuoteVersion thing;
String eRPDeliveryTermsKey = thing.GetERPDeliveryTermsKey();

Returns

Type Description
String Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text. For instance 'FOB' ('Free on board').

GetERPDeliveryTypeKey()

Declaration

String GetERPDeliveryTypeKey()

Examples

NSQuoteVersion thing;
String eRPDeliveryTypeKey = thing.GetERPDeliveryTypeKey();

Returns

Type Description
String Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text. For instance 'Air'.

GetERPPaymentTermsKey()

Declaration

String GetERPPaymentTermsKey()

Examples

NSQuoteVersion thing;
String eRPPaymentTermsKey = thing.GetERPPaymentTermsKey();

Returns

Type Description
String Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text. For instance 'Standard 30 days'.

GetERPPaymentTypeKey()

Declaration

String GetERPPaymentTypeKey()

Examples

NSQuoteVersion thing;
String eRPPaymentTypeKey = thing.GetERPPaymentTypeKey();

Returns

Type Description
String Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text. For instance 'Invoice'.

GetERPQuoteVersionKey()

Declaration

String GetERPQuoteVersionKey()

Examples

NSQuoteVersion thing;
String eRPQuoteVersionKey = thing.GetERPQuoteVersionKey();

Returns

Type Description
String Key in the ERP system that uniquely identifies this Version within the ERP system (if available, the field may be empty).

GetExpirationDate()

Declaration

DateTime GetExpirationDate()

Examples

NSQuoteVersion thing;
DateTime expirationDate = thing.GetExpirationDate();

Returns

Type Description
DateTime Last date the quote Version is valid, expiration is at midnight end of this day.

GetExtraField1()

Declaration

String GetExtraField1()

Examples

NSQuoteVersion thing;
String extraField1 = thing.GetExtraField1();

Returns

Type Description
String Optional information added by Quote Connector; usable in the quote document merge process.

GetExtraField2()

Declaration

String GetExtraField2()

Examples

NSQuoteVersion thing;
String extraField2 = thing.GetExtraField2();

Returns

Type Description
String Optional information added by Quote Connector; usable in the quote document merge process.

GetExtraField3()

Declaration

String GetExtraField3()

Examples

NSQuoteVersion thing;
String extraField3 = thing.GetExtraField3();

Returns

Type Description
String Optional information added by Quote Connector; usable in the quote document merge process.

GetExtraField4()

Declaration

String GetExtraField4()

Examples

NSQuoteVersion thing;
String extraField4 = thing.GetExtraField4();

Returns

Type Description
String Optional information added by Quote Connector; usable in the quote document merge process.

GetExtraField5()

Declaration

String GetExtraField5()

Examples

NSQuoteVersion thing;
String extraField5 = thing.GetExtraField5();

Returns

Type Description
String Optional information added by Quote Connector; usable in the quote document merge process.

GetFollowupId()

Declaration

Integer GetFollowupId()

Examples

NSQuoteVersion thing;
Integer followupId = thing.GetFollowupId();

Returns

Type Description
Integer Link to a follow-up activity, created when this quote version was sent to the customer.

GetHasOwnDeliveryAddress()

Declaration

Bool GetHasOwnDeliveryAddress()

Examples

NSQuoteVersion thing;
Bool hasOwnDeliveryAddress = thing.GetHasOwnDeliveryAddress();

Returns

Type Description
Bool The delivery address is not the same as the contact's Street address.

GetHasOwnInvoiceAddress()

Declaration

Bool GetHasOwnInvoiceAddress()

Examples

NSQuoteVersion thing;
Bool hasOwnInvoiceAddress = thing.GetHasOwnInvoiceAddress();

Returns

Type Description
Bool The quote has an address for Invoicing. This will typically be copied from the company's addresses.

GetInvoiceCountryId()

Declaration

Integer GetInvoiceCountryId()

Examples

NSQuoteVersion thing;
Integer invoiceCountryId = thing.GetInvoiceCountryId();

Returns

Type Description
Integer Country of invoice address, typically copied from contact record.

GetLastRecalculated()

Declaration

DateTime GetLastRecalculated()

Examples

NSQuoteVersion thing;
DateTime lastRecalculated = thing.GetLastRecalculated();

Returns

Type Description
DateTime When this version was last subjected to a total recalculation.

GetLikelyQuoteAlternativeId()

Declaration

Integer GetLikelyQuoteAlternativeId()

Examples

NSQuoteVersion thing;
Integer likelyQuoteAlternativeId = thing.GetLikelyQuoteAlternativeId();

Returns

Type Description
Integer The alternative that is considered most likely to be accepted. Used to calculate probable income.

GetNumber()

Declaration

String GetNumber()

Examples

NSQuoteVersion thing;
String number = thing.GetNumber();

Returns

Type Description
String A quote number that the user (or ERP connector) can fill out.

GetQuoteAlternatives()

Declaration

NSQuoteAlternative[] GetQuoteAlternatives()

Examples

NSQuoteVersion thing;
NSQuoteAlternative[] quoteAlternatives = thing.GetQuoteAlternatives();

Returns

Type Description
NSQuoteAlternative[] The QuoteAlternatives for the NSQuoteVersion.

GetQuoteId()

Declaration

Integer GetQuoteId()

Examples

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

Returns

Type Description
Integer Foreign key to CRM quote (the conceptual parent). Owning Quote of this Quote Version.

GetQuoteVersionId()

Declaration

Integer GetQuoteVersionId()

Examples

NSQuoteVersion thing;
Integer quoteVersionId = thing.GetQuoteVersionId();

Returns

Type Description
Integer Primary key.

GetRank()

Declaration

Integer GetRank()

Examples

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

Returns

Type Description
Integer Rank/Version number, starts at 1

GetReason()

Declaration

String GetReason()

Examples

NSQuoteVersion thing;
String reason = thing.GetReason();

Returns

Type Description
String If there was a problem, this field contains a localized explanation of the problem and possible steps to fix it that the user can be shown.

GetRegistered()

Declaration

DateTime GetRegistered()

Examples

NSQuoteVersion thing;
DateTime registered = thing.GetRegistered();

Returns

Type Description
DateTime Registered when.

GetRegisteredAssociateId()

Declaration

Integer GetRegisteredAssociateId()

Examples

NSQuoteVersion thing;
Integer registeredAssociateId = thing.GetRegisteredAssociateId();

Returns

Type Description
Integer Registered by whom.

GetSentDate()

Declaration

DateTime GetSentDate()

Examples

NSQuoteVersion thing;
DateTime sentDate = thing.GetSentDate();

Returns

Type Description
DateTime The date the version was sent to the customer.

GetState()

Declaration

Integer GetState()

Examples

NSQuoteVersion thing;
Integer state = thing.GetState();

Returns

Type Description
Integer Current state of this quote version. See <xref href="CRMScript.NetServer.QuoteVersionState" data-throw-if-not-resolved="false"></xref>.

GetStatus()

Declaration

Integer GetStatus()

Examples

NSQuoteVersion thing;
Integer status = thing.GetStatus();

Returns

Type Description
Integer If there was a problem with for instance calculation, this field is set to warning or error. See <xref href="CRMScript.NetServer.QuoteStatus" data-throw-if-not-resolved="false"></xref>.

GetUpdated()

Declaration

DateTime GetUpdated()

Examples

NSQuoteVersion thing;
DateTime updated = thing.GetUpdated();

Returns

Type Description
DateTime Last updated when.

GetUpdatedAssociateId()

Declaration

Integer GetUpdatedAssociateId()

Examples

NSQuoteVersion thing;
Integer updatedAssociateId = thing.GetUpdatedAssociateId();

Returns

Type Description
Integer Last updated by whom.

SetApprovedBy(Integer)

Declaration

Void SetApprovedBy(Integer approvedBy)

Examples

NSQuoteVersion thing;
Integer approvedBy;
thing.SetApprovedBy(approvedBy);

Parameters

Type Name Description
Integer approvedBy ID of associate who approved (or rejected approval) for this version.

Returns

Type Description
Void

SetApprovedRegisteredBy(Integer)

Declaration

Void SetApprovedRegisteredBy(Integer approvedRegisteredBy)

Examples

NSQuoteVersion thing;
Integer approvedRegisteredBy;
thing.SetApprovedRegisteredBy(approvedRegisteredBy);

Parameters

Type Name Description
Integer approvedRegisteredBy ID of associate who actually entered the approval; might be different from ApprovedBy (f.x. due to telephone consultation/approval).

Returns

Type Description
Void

SetApprovedRegisteredDate(DateTime)

Declaration

Void SetApprovedRegisteredDate(DateTime approvedRegisteredDate)

Examples

NSQuoteVersion thing;
DateTime approvedRegisteredDate;
thing.SetApprovedRegisteredDate(approvedRegisteredDate);

Parameters

Type Name Description
DateTime approvedRegisteredDate When was approval granted or rejected.

Returns

Type Description
Void

SetApprovedText(String)

Declaration

Void SetApprovedText(String approvedText)

Examples

NSQuoteVersion thing;
String approvedText;
thing.SetApprovedText(approvedText);

Parameters

Type Name Description
String approvedText Text with comments on why approval was granted (or rejected).

Returns

Type Description
Void

SetArchivedState(Integer)

Declaration

Void SetArchivedState(Integer archivedState)

Examples

NSQuoteVersion thing;
Integer archivedState;
thing.SetArchivedState(archivedState);

Parameters

Type Name Description
Integer archivedState State that this quote version had, right before it was changed to Archived; in this way we can show what happened before the archiving. See <xref href="CRMScript.NetServer.QuoteVersionState" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetDeliveryCountryId(Integer)

Declaration

Void SetDeliveryCountryId(Integer deliveryCountryId)

Examples

NSQuoteVersion thing;
Integer deliveryCountryId;
thing.SetDeliveryCountryId(deliveryCountryId);

Parameters

Type Name Description
Integer deliveryCountryId Country of delivery address, typically copied from the contact record.

Returns

Type Description
Void

SetDescription(String)

Declaration

Void SetDescription(String description)

Examples

NSQuoteVersion thing;
String description;
thing.SetDescription(description);

Parameters

Type Name Description
String description Description of Version. Potentially longer text description, typically used in a tooltip. Max 2K.

Returns

Type Description
Void

SetERPDeliveryTermsKey(String)

Declaration

Void SetERPDeliveryTermsKey(String eRPDeliveryTermsKey)

Examples

NSQuoteVersion thing;
String eRPDeliveryTermsKey;
thing.SetERPDeliveryTermsKey(eRPDeliveryTermsKey);

Parameters

Type Name Description
String eRPDeliveryTermsKey Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text. For instance 'FOB' ('Free on board').

Returns

Type Description
Void

SetERPDeliveryTypeKey(String)

Declaration

Void SetERPDeliveryTypeKey(String eRPDeliveryTypeKey)

Examples

NSQuoteVersion thing;
String eRPDeliveryTypeKey;
thing.SetERPDeliveryTypeKey(eRPDeliveryTypeKey);

Parameters

Type Name Description
String eRPDeliveryTypeKey Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text. For instance 'Air'.

Returns

Type Description
Void

SetERPPaymentTermsKey(String)

Declaration

Void SetERPPaymentTermsKey(String eRPPaymentTermsKey)

Examples

NSQuoteVersion thing;
String eRPPaymentTermsKey;
thing.SetERPPaymentTermsKey(eRPPaymentTermsKey);

Parameters

Type Name Description
String eRPPaymentTermsKey Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text. For instance 'Standard 30 days'.

Returns

Type Description
Void

SetERPPaymentTypeKey(String)

Declaration

Void SetERPPaymentTypeKey(String eRPPaymentTypeKey)

Examples

NSQuoteVersion thing;
String eRPPaymentTypeKey;
thing.SetERPPaymentTypeKey(eRPPaymentTypeKey);

Parameters

Type Name Description
String eRPPaymentTypeKey Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text. For instance 'Invoice'.

Returns

Type Description
Void

SetERPQuoteVersionKey(String)

Declaration

Void SetERPQuoteVersionKey(String eRPQuoteVersionKey)

Examples

NSQuoteVersion thing;
String eRPQuoteVersionKey;
thing.SetERPQuoteVersionKey(eRPQuoteVersionKey);

Parameters

Type Name Description
String eRPQuoteVersionKey Key in the ERP system that uniquely identifies this Version within the ERP system (if available, the field may be empty).

Returns

Type Description
Void

SetExpirationDate(DateTime)

Declaration

Void SetExpirationDate(DateTime expirationDate)

Examples

NSQuoteVersion thing;
DateTime expirationDate;
thing.SetExpirationDate(expirationDate);

Parameters

Type Name Description
DateTime expirationDate Last date the quote Version is valid, expiration is at midnight end of this day.

Returns

Type Description
Void

SetExtraField1(String)

Declaration

Void SetExtraField1(String extraField1)

Examples

NSQuoteVersion thing;
String extraField1;
thing.SetExtraField1(extraField1);

Parameters

Type Name Description
String extraField1 Optional information added by Quote Connector; usable in the quote document merge process.

Returns

Type Description
Void

SetExtraField2(String)

Declaration

Void SetExtraField2(String extraField2)

Examples

NSQuoteVersion thing;
String extraField2;
thing.SetExtraField2(extraField2);

Parameters

Type Name Description
String extraField2 Optional information added by Quote Connector; usable in the quote document merge process.

Returns

Type Description
Void

SetExtraField3(String)

Declaration

Void SetExtraField3(String extraField3)

Examples

NSQuoteVersion thing;
String extraField3;
thing.SetExtraField3(extraField3);

Parameters

Type Name Description
String extraField3 Optional information added by Quote Connector; usable in the quote document merge process.

Returns

Type Description
Void

SetExtraField4(String)

Declaration

Void SetExtraField4(String extraField4)

Examples

NSQuoteVersion thing;
String extraField4;
thing.SetExtraField4(extraField4);

Parameters

Type Name Description
String extraField4 Optional information added by Quote Connector; usable in the quote document merge process.

Returns

Type Description
Void

SetExtraField5(String)

Declaration

Void SetExtraField5(String extraField5)

Examples

NSQuoteVersion thing;
String extraField5;
thing.SetExtraField5(extraField5);

Parameters

Type Name Description
String extraField5 Optional information added by Quote Connector; usable in the quote document merge process.

Returns

Type Description
Void

SetFollowupId(Integer)

Declaration

Void SetFollowupId(Integer followupId)

Examples

NSQuoteVersion thing;
Integer followupId;
thing.SetFollowupId(followupId);

Parameters

Type Name Description
Integer followupId Link to a follow-up activity, created when this quote version was sent to the customer.

Returns

Type Description
Void

SetHasOwnDeliveryAddress(Bool)

Declaration

Void SetHasOwnDeliveryAddress(Bool hasOwnDeliveryAddress)

Examples

NSQuoteVersion thing;
Bool hasOwnDeliveryAddress;
thing.SetHasOwnDeliveryAddress(hasOwnDeliveryAddress);

Parameters

Type Name Description
Bool hasOwnDeliveryAddress The delivery address is not the same as the contact's Street address.

Returns

Type Description
Void

SetHasOwnInvoiceAddress(Bool)

Declaration

Void SetHasOwnInvoiceAddress(Bool hasOwnInvoiceAddress)

Examples

NSQuoteVersion thing;
Bool hasOwnInvoiceAddress;
thing.SetHasOwnInvoiceAddress(hasOwnInvoiceAddress);

Parameters

Type Name Description
Bool hasOwnInvoiceAddress The quote has an address for Invoicing. This will typically be copied from the company's addresses.

Returns

Type Description
Void

SetInvoiceCountryId(Integer)

Declaration

Void SetInvoiceCountryId(Integer invoiceCountryId)

Examples

NSQuoteVersion thing;
Integer invoiceCountryId;
thing.SetInvoiceCountryId(invoiceCountryId);

Parameters

Type Name Description
Integer invoiceCountryId Country of invoice address, typically copied from contact record.

Returns

Type Description
Void

SetLastRecalculated(DateTime)

Declaration

Void SetLastRecalculated(DateTime lastRecalculated)

Examples

NSQuoteVersion thing;
DateTime lastRecalculated;
thing.SetLastRecalculated(lastRecalculated);

Parameters

Type Name Description
DateTime lastRecalculated When this version was last subjected to a total recalculation. This field must be set by the connector, since the connector may choose to ignore a RecalculateVersion call based on policies and possibly the current value of this field. SuperOffice will set this field to 1.1.1760 whenever any change occurs to the quote, to indicate that a recalculation is needed.

Returns

Type Description
Void

SetLikelyQuoteAlternativeId(Integer)

Declaration

Void SetLikelyQuoteAlternativeId(Integer likelyQuoteAlternativeId)

Examples

NSQuoteVersion thing;
Integer likelyQuoteAlternativeId;
thing.SetLikelyQuoteAlternativeId(likelyQuoteAlternativeId);

Parameters

Type Name Description
Integer likelyQuoteAlternativeId The alternative that is considered most likely to be accepted. Used to calculate probable income.

Returns

Type Description
Void

SetNumber(String)

Declaration

Void SetNumber(String number)

Examples

NSQuoteVersion thing;
String number;
thing.SetNumber(number);

Parameters

Type Name Description
String number A quote number that the user (or ERP connector) can fill out.

Returns

Type Description
Void

SetQuoteAlternatives(NSQuoteAlternative[])

Declaration

Void SetQuoteAlternatives(NSQuoteAlternative[] quoteAlternatives)

Examples

NSQuoteVersion thing;
NSQuoteAlternative[] quoteAlternatives;
thing.SetQuoteAlternatives(quoteAlternatives);

Parameters

Type Name Description
NSQuoteAlternative[] quoteAlternatives The QuoteAlternatives for the NSQuoteVersion.

Returns

Type Description
Void

SetQuoteId(Integer)

Declaration

Void SetQuoteId(Integer quoteId)

Examples

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

Parameters

Type Name Description
Integer quoteId Foreign key to CRM quote (the conceptual parent). Owning Quote of this Quote Version.

Returns

Type Description
Void

SetQuoteVersionId(Integer)

Declaration

Void SetQuoteVersionId(Integer quoteVersionId)

Examples

NSQuoteVersion thing;
Integer quoteVersionId;
thing.SetQuoteVersionId(quoteVersionId);

Parameters

Type Name Description
Integer quoteVersionId Primary key.

Returns

Type Description
Void

SetRank(Integer)

Declaration

Void SetRank(Integer rank)

Examples

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

Parameters

Type Name Description
Integer rank Rank/Version number, starts at 1

Returns

Type Description
Void

SetReason(String)

Declaration

Void SetReason(String reason)

Examples

NSQuoteVersion thing;
String reason;
thing.SetReason(reason);

Parameters

Type Name Description
String reason If there was a problem, this field contains a localized explanation of the problem and possible steps to fix it that the user can be shown.

Returns

Type Description
Void

SetRegistered(DateTime)

Declaration

Void SetRegistered(DateTime registered)

Examples

NSQuoteVersion thing;
DateTime registered;
thing.SetRegistered(registered);

Parameters

Type Name Description
DateTime registered Registered when.

Returns

Type Description
Void

SetRegisteredAssociateId(Integer)

Declaration

Void SetRegisteredAssociateId(Integer registeredAssociateId)

Examples

NSQuoteVersion thing;
Integer registeredAssociateId;
thing.SetRegisteredAssociateId(registeredAssociateId);

Parameters

Type Name Description
Integer registeredAssociateId Registered by whom.

Returns

Type Description
Void

SetSentDate(DateTime)

Declaration

Void SetSentDate(DateTime sentDate)

Examples

NSQuoteVersion thing;
DateTime sentDate;
thing.SetSentDate(sentDate);

Parameters

Type Name Description
DateTime sentDate The date the version was sent to the customer.

Returns

Type Description
Void

SetState(Integer)

Declaration

Void SetState(Integer state)

Examples

NSQuoteVersion thing;
Integer state;
thing.SetState(state);

Parameters

Type Name Description
Integer state Current state of this quote version. See <xref href="CRMScript.NetServer.QuoteVersionState" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetStatus(Integer)

Declaration

Void SetStatus(Integer status)

Examples

NSQuoteVersion thing;
Integer status;
thing.SetStatus(status);

Parameters

Type Name Description
Integer status If there was a problem with for instance calculation, this field is set to warning or error. See <xref href="CRMScript.NetServer.QuoteStatus" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetUpdated(DateTime)

Declaration

Void SetUpdated(DateTime updated)

Examples

NSQuoteVersion thing;
DateTime updated;
thing.SetUpdated(updated);

Parameters

Type Name Description
DateTime updated Last updated when.

Returns

Type Description
Void

SetUpdatedAssociateId(Integer)

Declaration

Void SetUpdatedAssociateId(Integer updatedAssociateId)

Examples

NSQuoteVersion thing;
Integer updatedAssociateId;
thing.SetUpdatedAssociateId(updatedAssociateId);

Parameters

Type Name Description
Integer updatedAssociateId Last updated by whom.

Returns

Type Description
Void