Show / Hide Table of Contents

Class NSProduct

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Syntax

Constructors

NSProduct()

Initializes a new instance of the NSProduct class.

Declaration
NSProduct

Methods

GetCode()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetCode()
Returns
Type Description
String

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

Examples
NSProduct thing;
String code = thing.GetCode();

GetDefaultSubscriptionQuantity()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Float GetDefaultSubscriptionQuantity()
Returns
Type Description
Float

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

Examples
NSProduct thing;
Float defaultSubscriptionQuantity = thing.GetDefaultSubscriptionQuantity();

GetDescription()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetDescription()
Returns
Type Description
String

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

Examples
NSProduct thing;
String description = thing.GetDescription();

GetERPPriceListKey()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetERPPriceListKey()
Returns
Type Description
String

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

Examples
NSProduct thing;
String eRPPriceListKey = thing.GetERPPriceListKey();

GetERPProductKey()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetERPProductKey()
Returns
Type Description
String

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

Examples
NSProduct thing;
String eRPProductKey = thing.GetERPProductKey();

GetExtraField1()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetExtraField1()
Returns
Type Description
String

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Examples
NSProduct thing;
String extraField1 = thing.GetExtraField1();

GetExtraField2()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetExtraField2()
Returns
Type Description
String

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Examples
NSProduct thing;
String extraField2 = thing.GetExtraField2();

GetExtraField3()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetExtraField3()
Returns
Type Description
String

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Examples
NSProduct thing;
String extraField3 = thing.GetExtraField3();

GetExtraField4()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetExtraField4()
Returns
Type Description
String

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Examples
NSProduct thing;
String extraField4 = thing.GetExtraField4();

GetExtraField5()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetExtraField5()
Returns
Type Description
String

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Examples
NSProduct thing;
String extraField5 = thing.GetExtraField5();

GetExtraInfo()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
NSProductExtraDataField[] GetExtraInfo()
Returns
Type Description
NSProductExtraDataField[]

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

Examples
NSProduct thing;
NSProductExtraDataField[] extraInfo = thing.GetExtraInfo();

GetInAssortment()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Bool GetInAssortment()
Returns
Type Description
Bool

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.

Examples
NSProduct thing;
Bool inAssortment = thing.GetInAssortment();

GetInStock()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Float GetInStock()
Returns
Type Description
Float

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

Examples
NSProduct thing;
Float inStock = thing.GetInStock();

GetIsSubscription()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Bool GetIsSubscription()
Returns
Type Description
Bool

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

Examples
NSProduct thing;
Bool isSubscription = thing.GetIsSubscription();

GetItemNumber()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetItemNumber()
Returns
Type Description
String

Line item number, NOR «Postnummer». Specific numbers from some hierarchy, for instance "1.4.3.2P".

Remarks

Typically used to sort the items in the quote by some standard way.

Examples
NSProduct thing;
String itemNumber = thing.GetItemNumber();

GetName()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetName()
Returns
Type Description
String

The name to use in the user interface.

Examples
NSProduct thing;
String name = thing.GetName();

GetPriceUnit()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetPriceUnit()
Returns
Type Description
String

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

Examples
NSProduct thing;
String priceUnit = thing.GetPriceUnit();

GetProductCategoryKey()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetProductCategoryKey()
Returns
Type Description
String

Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text with the actual product category.

Examples
NSProduct thing;
String productCategoryKey = thing.GetProductCategoryKey();

GetProductFamilyKey()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetProductFamilyKey()
Returns
Type Description
String

Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text with the actual product family.

Examples
NSProduct thing;
String productFamilyKey = thing.GetProductFamilyKey();

GetProductId()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Integer GetProductId()
Returns
Type Description
Integer

Primary key.

Examples
NSProduct thing;
Integer productId = thing.GetProductId();

GetProductTypeKey()

Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text with the actual product type.

Declaration
String GetProductTypeKey()
Returns
Type Description
String
Examples
NSProduct thing;
String productTypeKey = thing.GetProductTypeKey();

GetQuantityUnit()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetQuantityUnit()
Returns
Type Description
String

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

Examples
NSProduct thing;
String quantityUnit = thing.GetQuantityUnit();

GetRawExtraInfo()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetRawExtraInfo()
Returns
Type Description
String

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

Examples
NSProduct thing;
String rawExtraInfo = thing.GetRawExtraInfo();

GetRights()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetRights()
Returns
Type Description
String

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.

Remarks

Will be used by SuperOffice to control the user interface when showing the record.

Examples
NSProduct thing;
String rights = thing.GetRights();

GetRule()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetRule()
Returns
Type Description
String

The names of one or more calculation rules that are in effect for this line, comma-separated case-insensitive.

Remarks

Will NOT be used by SuperOffice.

Examples
NSProduct thing;
String rule = thing.GetRule();

GetSubscriptionUnit()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetSubscriptionUnit()
Returns
Type Description
String

Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text with the actual subscription unit.

Examples
NSProduct thing;
String subscriptionUnit = thing.GetSubscriptionUnit();

GetSupplier()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetSupplier()
Returns
Type Description
String

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

Examples
NSProduct thing;
String supplier = thing.GetSupplier();

GetSupplierCode()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetSupplierCode()
Returns
Type Description
String

Suppliers part code/number or other key-like field.

Examples
NSProduct thing;
String supplierCode = thing.GetSupplierCode();

GetUnitCost()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Float GetUnitCost()
Returns
Type Description
Float

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

Examples
NSProduct thing;
Float unitCost = thing.GetUnitCost();

GetUnitListPrice()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Float GetUnitListPrice()
Returns
Type Description
Float

The basic/normal/standard price from which the discount is computed from.

Remarks

The ListPrice will stay the same even when a larger amount is ordered.

Examples
NSProduct thing;
Float unitListPrice = thing.GetUnitListPrice();

GetUnitMinimumPrice()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Float GetUnitMinimumPrice()
Returns
Type Description
Float

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.

Examples
NSProduct thing;
Float unitMinimumPrice = thing.GetUnitMinimumPrice();

GetUrl()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetUrl()
Returns
Type Description
String

URL to product information web page.

Examples
NSProduct thing;
String url = thing.GetUrl();

GetVAT()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Float GetVAT()
Returns
Type Description
Float

Tax/VAT if available from ERP system. THIS IS A PERCENTAGE.

Remarks

In the Superoffice product register, this field is available in the product admin GUI.

Examples
NSProduct thing;
Float vAT = thing.GetVAT();

GetVATInfo()

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
String GetVATInfo()
Returns
Type Description
String

VATInfo you need to show in the final quoteDocument, like the VAT type that is used.

Remarks

Not used in any business logic in SuperOffice; available to document templates.

Examples
NSProduct thing;
String vATInfo = thing.GetVATInfo();

SetCode(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetCode(String code)
Parameters
Type Name Description
String code

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

Returns
Type Description
Void
Examples
NSProduct thing;
String code;
thing.SetCode(code);

SetDefaultSubscriptionQuantity(Float)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetDefaultSubscriptionQuantity(Float defaultSubscriptionQuantity)
Parameters
Type Name Description
Float defaultSubscriptionQuantity

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

Returns
Type Description
Void
Examples
NSProduct thing;
Float defaultSubscriptionQuantity;
thing.SetDefaultSubscriptionQuantity(defaultSubscriptionQuantity);

SetDescription(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetDescription(String description)
Parameters
Type Name Description
String description

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

Returns
Type Description
Void
Examples
NSProduct thing;
String description;
thing.SetDescription(description);

SetERPPriceListKey(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetERPPriceListKey(String eRPPriceListKey)
Parameters
Type Name Description
String eRPPriceListKey

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

Returns
Type Description
Void
Examples
NSProduct thing;
String eRPPriceListKey;
thing.SetERPPriceListKey(eRPPriceListKey);

SetERPProductKey(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetERPProductKey(String eRPProductKey)
Parameters
Type Name Description
String eRPProductKey

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

Returns
Type Description
Void
Examples
NSProduct thing;
String eRPProductKey;
thing.SetERPProductKey(eRPProductKey);

SetExtraField1(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetExtraField1(String extraField1)
Parameters
Type Name Description
String extraField1

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Returns
Type Description
Void
Examples
NSProduct thing;
String extraField1;
thing.SetExtraField1(extraField1);

SetExtraField2(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetExtraField2(String extraField2)
Parameters
Type Name Description
String extraField2

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Returns
Type Description
Void
Examples
NSProduct thing;
String extraField2;
thing.SetExtraField2(extraField2);

SetExtraField3(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetExtraField3(String extraField3)
Parameters
Type Name Description
String extraField3

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Returns
Type Description
Void
Examples
NSProduct thing;
String extraField3;
thing.SetExtraField3(extraField3);

SetExtraField4(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetExtraField4(String extraField4)
Parameters
Type Name Description
String extraField4

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Returns
Type Description
Void
Examples
NSProduct thing;
String extraField4;
thing.SetExtraField4(extraField4);

SetExtraField5(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetExtraField5(String extraField5)
Parameters
Type Name Description
String extraField5

A simple field for adding information that the Connector can provide, and that the quote document need to display.

Returns
Type Description
Void
Examples
NSProduct thing;
String extraField5;
thing.SetExtraField5(extraField5);

SetExtraInfo(NSProductExtraDataField[])

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetExtraInfo(NSProductExtraDataField[] extraInfo)
Parameters
Type Name Description
NSProductExtraDataField[] extraInfo

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

Returns
Type Description
Void
Examples
NSProduct thing;
NSProductExtraDataField[] extraInfo;
thing.SetExtraInfo(extraInfo);

SetInAssortment(Bool)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetInAssortment(Bool inAssortment)
Parameters
Type Name Description
Bool 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.

Returns
Type Description
Void
Examples
NSProduct thing;
Bool inAssortment;
thing.SetInAssortment(inAssortment);

SetInStock(Float)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetInStock(Float inStock)
Parameters
Type Name Description
Float inStock

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

Returns
Type Description
Void
Examples
NSProduct thing;
Float inStock;
thing.SetInStock(inStock);

SetIsSubscription(Bool)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetIsSubscription(Bool isSubscription)
Parameters
Type Name Description
Bool isSubscription

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

Returns
Type Description
Void
Examples
NSProduct thing;
Bool isSubscription;
thing.SetIsSubscription(isSubscription);

SetItemNumber(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetItemNumber(String itemNumber)
Parameters
Type Name Description
String itemNumber

Line item number, NOR «Postnummer». Specific numbers from some hierarchy, for instance "1.4.3.2P".

Returns
Type Description
Void
Remarks

Typically used to sort the items in the quote by some standard way.

Examples
NSProduct thing;
String itemNumber;
thing.SetItemNumber(itemNumber);

SetName(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetName(String name)
Parameters
Type Name Description
String name

The name to use in the user interface.

Returns
Type Description
Void
Examples
NSProduct thing;
String name;
thing.SetName(name);

SetPriceUnit(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetPriceUnit(String priceUnit)
Parameters
Type Name Description
String priceUnit

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

Returns
Type Description
Void
Examples
NSProduct thing;
String priceUnit;
thing.SetPriceUnit(priceUnit);

SetProductCategoryKey(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetProductCategoryKey(String productCategoryKey)
Parameters
Type Name Description
String productCategoryKey

Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text with the actual product category.

Returns
Type Description
Void
Examples
NSProduct thing;
String productCategoryKey;
thing.SetProductCategoryKey(productCategoryKey);

SetProductFamilyKey(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetProductFamilyKey(String productFamilyKey)
Parameters
Type Name Description
String productFamilyKey

Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text with the actual product family.

Returns
Type Description
Void
Examples
NSProduct thing;
String productFamilyKey;
thing.SetProductFamilyKey(productFamilyKey);

SetProductId(Integer)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetProductId(Integer productId)
Parameters
Type Name Description
Integer productId

Primary key.

Returns
Type Description
Void
Examples
NSProduct thing;
Integer productId;
thing.SetProductId(productId);

SetProductTypeKey(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetProductTypeKey(String productTypeKey)
Parameters
Type Name Description
String productTypeKey

Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text with the actual product type.

Returns
Type Description
Void
Examples
NSProduct thing;
String productTypeKey;
thing.SetProductTypeKey(productTypeKey);

SetQuantityUnit(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetQuantityUnit(String quantityUnit)
Parameters
Type Name Description
String quantityUnit

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

Returns
Type Description
Void
Examples
NSProduct thing;
String quantityUnit;
thing.SetQuantityUnit(quantityUnit);

SetRawExtraInfo(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetRawExtraInfo(String rawExtraInfo)
Parameters
Type Name Description
String rawExtraInfo

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

Returns
Type Description
Void
Examples
NSProduct thing;
String rawExtraInfo;
thing.SetRawExtraInfo(rawExtraInfo);

SetRights(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetRights(String rights)
Parameters
Type Name Description
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.

Returns
Type Description
Void
Remarks

Will be used by SuperOffice to control the user interface when showing the record.

Examples
NSProduct thing;
String rights;
thing.SetRights(rights);

SetRule(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetRule(String rule)
Parameters
Type Name Description
String rule

The names of one or more calculation rules that are in effect for this line, comma-separated case-insensitive.

Returns
Type Description
Void
Remarks

Will NOT be used by SuperOffice.

Examples
NSProduct thing;
String rule;
thing.SetRule(rule);

SetSubscriptionUnit(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetSubscriptionUnit(String subscriptionUnit)
Parameters
Type Name Description
String subscriptionUnit

Either a ListId to an ID from a connector provided list, or, if the connection doesn't support lists, a text with the actual subscription unit.

Returns
Type Description
Void
Examples
NSProduct thing;
String subscriptionUnit;
thing.SetSubscriptionUnit(subscriptionUnit);

SetSupplier(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetSupplier(String supplier)
Parameters
Type Name Description
String supplier

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

Returns
Type Description
Void
Examples
NSProduct thing;
String supplier;
thing.SetSupplier(supplier);

SetSupplierCode(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetSupplierCode(String supplierCode)
Parameters
Type Name Description
String supplierCode

Suppliers part code/number or other key-like field.

Returns
Type Description
Void
Examples
NSProduct thing;
String supplierCode;
thing.SetSupplierCode(supplierCode);

SetUnitCost(Float)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetUnitCost(Float unitCost)
Parameters
Type Name Description
Float unitCost

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

Returns
Type Description
Void
Examples
NSProduct thing;
Float unitCost;
thing.SetUnitCost(unitCost);

SetUnitListPrice(Float)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetUnitListPrice(Float unitListPrice)
Parameters
Type Name Description
Float unitListPrice

The basic/normal/standard price from which the discount is computed from.

Returns
Type Description
Void
Remarks

The ListPrice will stay the same even when a larger amount is ordered.

Examples
NSProduct thing;
Float unitListPrice;
thing.SetUnitListPrice(unitListPrice);

SetUnitMinimumPrice(Float)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetUnitMinimumPrice(Float unitMinimumPrice)
Parameters
Type Name Description
Float 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.

Returns
Type Description
Void
Examples
NSProduct thing;
Float unitMinimumPrice;
thing.SetUnitMinimumPrice(unitMinimumPrice);

SetUrl(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetUrl(String url)
Parameters
Type Name Description
String url

URL to product information web page.

Returns
Type Description
Void
Examples
NSProduct thing;
String url;
thing.SetUrl(url);

SetVAT(Float)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetVAT(Float vAT)
Parameters
Type Name Description
Float vAT

Tax/VAT if available from ERP system. THIS IS A PERCENTAGE.

Returns
Type Description
Void
Remarks

In the Superoffice product register, this field is available in the product admin GUI.

Examples
NSProduct thing;
Float vAT;
thing.SetVAT(vAT);

SetVATInfo(String)

Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.

Declaration
Void SetVATInfo(String vATInfo)
Parameters
Type Name Description
String vATInfo

VATInfo you need to show in the final quoteDocument, like the VAT type that is used.

Returns
Type Description
Void
Remarks

Not used in any business logic in SuperOffice; available to document templates.

Examples
NSProduct thing;
String vATInfo;
thing.SetVATInfo(vATInfo);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top