Skip to main content

Class Product

Namespace: SuperOffice.WebApi.Data
Assembly: SuperOffice.WebApi.dll
Carrier object for Product. Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector

Inheritance

objectCarrierProduct

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 Product 123 using the WebApi client:
var configuration = new WebApiConfiguration(url);
var agent = new QuoteAgent(configuration);
var product = agent.GetProduct( 123 );

Remarks

Use : All Product:
“Product”

Constructors

Product()

Default constructor - defaults any enum props to 0.

Properties

Code

The product code / article number in the product supplier system.

Property Value

string

DefaultSubscriptionQuantity

The default number of SubscriptionUnits to suggest when creating quote lines from this product

Property Value

double

Description

The description to use, with potentially several lines. Will be used as tool-tip to use in the list user interface too.

Property Value

string

ERPPriceListKey

Foreign key to the price list that this product is a part of, or the primary key of the pricelist if this is a built-in pricelist.

Property Value

string

ERPProductKey

Reference/foreign key to the product in the given pricelist in the product supplier system, if it exists there.

Property Value

string

ExtraField1

This a simple field for adding information that the Connector can provide, and that the qoute document need to display.

Property Value

string

ExtraField2

This a simple field for adding information that the Connector can provide, and that the qoute document need to display.

Property Value

string

ExtraField3

This a simple field for adding information that the Connector can provide, and that the qoute document need to display.

Property Value

string

ExtraField4

This a simple field for adding information that the Connector can provide, and that the qoute document need to display.

Property Value

string

ExtraField5

This a simple field for adding information that the Connector can provide, and that the qoute document need to display.

Property Value

string

ExtraInfo

Extra information, supplied by QuoteConnector, used by a future dynamic GUI extension

Property Value

ProductExtraDataField[]

InAssortment

True for products that should currently be offered, false when the product is discontinued and should not ordinarily be offered. When false the product no longer appears in search results.

Property Value

bool

InStock

Negative numbers will be interpreted as how many is ordered. Might not be available.

Property Value

double

IsSubscription

Is this a subscription product, sold in repeating intervals/amounts?

Property Value

bool

ItemNumber

Line item number, NOR: «Postnummer». Specific numbers from some hierarchy, for instance “1.4.3.2P”. Typically used to sort the items in the quote by some standard way.

Property Value

string

Name

The name to use in the user interface.

Property Value

string

PriceUnit

What is the unit (meter, ton, bushel, microsecond, gradus, τρυβλίον, 五合枡, دونم or whatever); read-only for lines that originate in defined products

Property Value

string

ProductCategoryKey

Either a List id to an id from a connector provided list, or, if the connection doesn’t support lists, a text with the actual product category.

Property Value

string

ProductFamilyKey

Either a List id to an id from a connector provided list, or, if the connection doesn’t support lists, a text with the actual product family.

Property Value

string

ProductId

Primary key

Property Value

int

ProductTypeKey

Either a List id to an id from a connector provided list, or, if the connection doesn’t support lists, a text with the actual product type.

Property Value

string

QuantityUnit

What is the unit (meter, ton, bushel, microsecond, gradus, τρυβλίον, 五合枡, دونم or whatever); Connector handles conversion relative to PriceUnit if they are different

Property Value

string

RawExtraInfo

Read-only extra information in plain text, supplied by QuoteConnector, used by a future dynamic GUI extension

Property Value

string

Rights

Field1=right&Field2=right, etc. of any fields that have non-standard field access rights. Rights can be one of: N (=None or Hidden), R (=Read-only), W (=Writeable), M (=Mandatory). The fields will mostly be from the Quoteline table, but some added fields that are conceptually part of the quoteline, like Image will also be possibly to set rights on. Will be used by SuperOffice to control the user interface when showing the record.

Property Value

string

Rule

The names of one or more calculation rules that are in effect for this line, comma-separated case-insensitive. Will NOT be used by SuperOffice.

Property Value

string

SubscriptionUnit

Either a List id to an id from a connector provided list, or, if the connection doesn’t support lists, a text with the actual subscription unit.

Property Value

string

Supplier

In SuperOffice, an id from the contact table, when saved as an ERP cache, the name of the supplier

Property Value

string

SupplierCode

Suppliers part code/number or other key-like field

Property Value

string

UnitCost

The cost price. Might not be given, use Decimal.MinValue to signal this.

Property Value

double

UnitListPrice

(Basic Price, normal price, standard price.) This is the basic price from which the discount is computed from. The ListPrice will stay the same even when a larger amount is ordered.

Property Value

double

UnitMinimumPrice

The minimum price this salesman can offer to his customer. This might be cost price if there is no policy. Might not be given, use Decimal.MinValue to signal this.

Property Value

double

Url

URL to product information web page.

Property Value

string

VAT

Tax/VAT if available from ERP system. THIS IS A PERCENTAGE. In the Superoffice product register, this field is available in the product admin GUI.

Property Value

double

VATInfo

A field for putting VATInfo you need to show in the final quoteDocument, like the VAT type that is used. Not used in any business logic in SuperOffice; available to document templates.

Property Value

string

See Also

QuoteAgent, ArchiveAgent,