Show / Hide Table of Contents

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.

Inheritance
Object
PriceListInfo
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM
Assembly: SuperOffice.Plugins.dll
Syntax
public class PriceListInfo

Constructors

PriceListInfo()

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
Boolean

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
Int32

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
Boolean

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
Overrides
Object.ToString()

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top