Class PriceListInfo
A pricelist 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.
Inherited Members
Namespace: SuperOffice.CRM
Assembly: SuperOffice.Plugins.dll
Syntax
public class PriceListInfo
Constructors
PriceListInfo()
A pricelist 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.
Declaration
public PriceListInfo()
Properties
Currency
The iso currency code, like 'USD' or 'NOK'.
Declaration
public string Currency { get; set; }
Property Value
Type | Description |
---|---|
string |
CurrencyName
The name to use in the user interface, like perhaps 'US dollar' or '$'
Declaration
public string CurrencyName { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
Description of this pricelist , will be used as tool-tip in the user interface.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ERPPriceListKey
Reference to the pricelist in the product supplier system.
Declaration
public string ERPPriceListKey { get; set; }
Property Value
Type | Description |
---|---|
string |
IsActive
Is the list active (as opposed to being worked on, suddenly canceled, etc.
Declaration
public bool IsActive { get; set; }
Property Value
Type | Description |
---|---|
bool |
Name
Name of this pricelist to use in the user interface.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
QuoteConnectionId
The connection in SuperOffice this pricelist comes from.
Declaration
public int QuoteConnectionId { get; set; }
Property Value
Type | Description |
---|---|
int |
ValidFrom
The date (inclusive) the pricelist start to be valid. This can be DateTime.MinValue to signal that it doesn't have a specific start date.
Declaration
public DateTime ValidFrom { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
ValidTo
The date (inclusive) the pricelist ends to be valid. This can be DateTime.MaxValue to signal that it doesn't have a specific end date.
Declaration
public DateTime ValidTo { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
IsValid()
Checks if the pricelist is valid according to the current date
Declaration
public bool IsValid()
Returns
Type | Description |
---|---|
bool | True if valid according to current date |
Remarks
If ValidTo is set to DateTime.MinValue, it will be interpreted as valid
ToString()
Helper for simplified debugging.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |