Skip to main content
A price list is basically a collection of products. It can be valid in a time period, and outright deactivated. All prices in the product list is in a specific currency. We have decieded not to separate prices and products, which means that we get a simpler data model, but some redundancy.

Constructors

NSPriceList()

Initializes a new instance of the NSPriceList class.

Methods

GetCurrency()

Returns: CRMScript.Global.String - The iso currency code, like ‘USD’ or ‘NOK’. Example:

GetCurrencyName()

Returns: CRMScript.Global.String - The name to use in the user interface, like perhaps ‘US dollar’ or ’$’. Example:

GetDescription()

Returns: CRMScript.Global.String - Description of this price list, will be used as tool-tip in the user interface. Example:

GetERPPriceListKey()

Returns: CRMScript.Global.String - The key that uniquely identifies this price list in the ERP system. Example:

GetIsActive()

Returns: CRMScript.Global.Bool - Is the list active (as opposed to being worked on, suddenly canceled, etc. Example:

GetName()

Returns: CRMScript.Global.String - Name of this price list to use in the user interface. Example:

GetPriceListId()

Returns: CRMScript.Global.Integer - Primary key. Example:

GetQuoteConnectionId()

Returns: CRMScript.Global.Integer - The connection to the ERP system used for this price list.
Reserved for future use
Example:

GetValidFrom()

Returns: CRMScript.Global.DateTime - The date (inclusive) the price list start to be valid. This can be DateTime.MinValue to signal that it doesn’t have a specific start date. Example:

GetValidTo()

Returns: CRMScript.Global.DateTime - The date (inclusive) the price list ends to be valid. This can be DateTime.MaxValue to signal that it doesn’t have a specific end date. Example:

SetCurrency(String)

Returns: CRMScript.Global.Void Example:

SetCurrencyName(String)

Returns: CRMScript.Global.Void Example:

SetDescription(String)

Returns: CRMScript.Global.Void Example:

SetERPPriceListKey(String)

Returns: CRMScript.Global.Void Example:

SetIsActive(Bool)

Returns: CRMScript.Global.Void Example:

SetName(String)

Returns: CRMScript.Global.Void Example:

SetPriceListId(Integer)

Returns: CRMScript.Global.Void Example:

SetQuoteConnectionId(Integer)

Returns: CRMScript.Global.Void
Reserved for future use
Example:

SetValidFrom(DateTime)

Returns: CRMScript.Global.Void Example:

SetValidTo(DateTime)

Returns: CRMScript.Global.Void Example: