Skip to main content

Class PriceList

Namespace: SuperOffice.WebApi.Data
Assembly: SuperOffice.WebApi.dll
Carrier object for PriceList. 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.

Inheritance

objectCarrierPriceList

Inherited Members

Carrier.TableRight, Carrier.FieldProperties, object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Examples

Get PriceList 123 using the WebApi client:
var configuration = new WebApiConfiguration(url);
var agent = new QuoteAgent(configuration);
var priceList = agent.GetPriceList( 123 );

Remarks

Use : All PriceList:
“PriceList”
Products:
“Product”
with restriction
“priceListId eq ” + id
.

Constructors

PriceList()

Default constructor - defaults any enum props to 0.

Properties

Currency

The iso currency code, like ‘USD’ or ‘NOK’.

Property Value

string

CurrencyName

The name to use in the user interface, like perhaps ‘US dollar’ or ’$‘

Property Value

string

Description

Description of this pricelist , will be used as tool-tip in the user interface.

Property Value

string

ERPPriceListKey

The key that uniquely identifies this pricelist in the ERP system

Property Value

string

IsActive

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

Property Value

bool

Name

Name of this pricelist to use in the user interface.

Property Value

string

PriceListId

Primary key

Property Value

int

QuoteConnectionId

(Reserved for future use) The connection to the ERP system used for this pricelist

Property Value

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.

Property Value

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.

Property Value

DateTime

See Also

QuoteAgent, ArchiveAgent,