Class NSPriceList

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.

Declaration

NSPriceList

Methods

GetCurrency()

Declaration

String GetCurrency()

Examples

NSPriceList thing;
String currency = thing.GetCurrency();

Returns

Type Description
String The iso currency code, like 'USD' or 'NOK'.

GetCurrencyName()

Declaration

String GetCurrencyName()

Examples

NSPriceList thing;
String currencyName = thing.GetCurrencyName();

Returns

Type Description
String The name to use in the user interface, like perhaps 'US dollar' or '$'.

GetDescription()

Declaration

String GetDescription()

Examples

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

Returns

Type Description
String Description of this price list, will be used as tool-tip in the user interface.

GetERPPriceListKey()

Declaration

String GetERPPriceListKey()

Examples

NSPriceList thing;
String eRPPriceListKey = thing.GetERPPriceListKey();

Returns

Type Description
String The key that uniquely identifies this price list in the ERP system.

GetIsActive()

Declaration

Bool GetIsActive()

Examples

NSPriceList thing;
Bool isActive = thing.GetIsActive();

Returns

Type Description
Bool Is the list active (as opposed to being worked on, suddenly canceled, etc.

GetName()

Declaration

String GetName()

Examples

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

Returns

Type Description
String Name of this price list to use in the user interface.

GetPriceListId()

Declaration

Integer GetPriceListId()

Examples

NSPriceList thing;
Integer priceListId = thing.GetPriceListId();

Returns

Type Description
Integer Primary key.

GetQuoteConnectionId()

Declaration

Integer GetQuoteConnectionId()

Examples

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

Returns

Type Description
Integer The connection to the ERP system used for this price list.

GetValidFrom()

Declaration

DateTime GetValidFrom()

Examples

NSPriceList thing;
DateTime validFrom = thing.GetValidFrom();

Returns

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

GetValidTo()

Declaration

DateTime GetValidTo()

Examples

NSPriceList thing;
DateTime validTo = thing.GetValidTo();

Returns

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

SetCurrency(String)

Declaration

Void SetCurrency(String currency)

Examples

NSPriceList thing;
String currency;
thing.SetCurrency(currency);

Parameters

Type Name Description
String currency The iso currency code, like 'USD' or 'NOK'.

Returns

Type Description
Void

SetCurrencyName(String)

Declaration

Void SetCurrencyName(String currencyName)

Examples

NSPriceList thing;
String currencyName;
thing.SetCurrencyName(currencyName);

Parameters

Type Name Description
String currencyName The name to use in the user interface, like perhaps 'US dollar' or '$'.

Returns

Type Description
Void

SetDescription(String)

Declaration

Void SetDescription(String description)

Examples

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

Parameters

Type Name Description
String description Description of this price list, will be used as tool-tip in the user interface.

Returns

Type Description
Void

SetERPPriceListKey(String)

Declaration

Void SetERPPriceListKey(String eRPPriceListKey)

Examples

NSPriceList thing;
String eRPPriceListKey;
thing.SetERPPriceListKey(eRPPriceListKey);

Parameters

Type Name Description
String eRPPriceListKey The key that uniquely identifies this price list in the ERP system.

Returns

Type Description
Void

SetIsActive(Bool)

Declaration

Void SetIsActive(Bool isActive)

Examples

NSPriceList thing;
Bool isActive;
thing.SetIsActive(isActive);

Parameters

Type Name Description
Bool isActive Is the list active (as opposed to being worked on, suddenly canceled, etc.

Returns

Type Description
Void

SetName(String)

Declaration

Void SetName(String name)

Examples

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

Parameters

Type Name Description
String name Name of this price list to use in the user interface.

Returns

Type Description
Void

SetPriceListId(Integer)

Declaration

Void SetPriceListId(Integer priceListId)

Examples

NSPriceList thing;
Integer priceListId;
thing.SetPriceListId(priceListId);

Parameters

Type Name Description
Integer priceListId Primary key.

Returns

Type Description
Void

SetQuoteConnectionId(Integer)

Declaration

Void SetQuoteConnectionId(Integer quoteConnectionId)

Examples

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

Parameters

Type Name Description
Integer quoteConnectionId The connection to the ERP system used for this price list.

Returns

Type Description
Void

SetValidFrom(DateTime)

Declaration

Void SetValidFrom(DateTime validFrom)

Examples

NSPriceList thing;
DateTime validFrom;
thing.SetValidFrom(validFrom);

Parameters

Type Name Description
DateTime validFrom 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.

Returns

Type Description
Void

SetValidTo(DateTime)

Declaration

Void SetValidTo(DateTime validTo)

Examples

NSPriceList thing;
DateTime validTo;
thing.SetValidTo(validTo);

Parameters

Type Name Description
DateTime validTo 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.

Returns

Type Description
Void