Information about a Product from the ERP system. This may be fetched from SuperOffice Product table through the SO Connector.
Constructors
NSProduct()
Initializes a new instance of the NSProduct class.
Methods
GetCode()
Returns: CRMScript.Global.String - The product code / article number in the product supplier system.
Example:
GetDefaultSubscriptionQuantity()
Returns: CRMScript.Global.Float - The default number of SubscriptionUnits to suggest when creating quote lines from this product.
Example:
GetDescription()
Returns: CRMScript.Global.String - The description to use, with potentially several lines. Will be used as tool-tip to use in the list user interface too.
Example:
GetERPPriceListKey()
Returns: CRMScript.Global.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.
Example:
GetERPProductKey()
Returns: CRMScript.Global.String - Reference/foreign key to the product in the given price list in the product supplier system, if it exists there.
Example:
Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display.
Example:
Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display.
Example:
Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display.
Example:
Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display.
Example:
Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display.
Example:
Returns: CRMScript.NetServer.NSProductExtraDataField[] - Extra information, supplied by QuoteConnector, used by a future dynamic GUI extension.
Example:
GetInAssortment()
Returns: CRMScript.Global.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.
Example:
GetInStock()
Returns: CRMScript.Global.Float - Negative numbers will be interpreted as how many is ordered. Might not be available.
Example:
GetIsSubscription()
Returns: CRMScript.Global.Bool - Is this a subscription product, sold in repeating intervals/amounts?
Example:
GetItemNumber()
Returns: CRMScript.Global.String - 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.
Example:
GetName()
Returns: CRMScript.Global.String - The name to use in the user interface.
Example:
GetPriceUnit()
Returns: CRMScript.Global.String - What is the unit (meter, ton, bushel, microsecond, gradus, τρυβλίον, 五合枡, دونم or whatever); read-only for lines that originate in defined products.
Example:
GetProductCategoryKey()
Returns: CRMScript.Global.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.
Example:
GetProductFamilyKey()
Returns: CRMScript.Global.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.
Example:
GetProductId()
Returns: CRMScript.Global.Integer - Primary key.
Example:
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.
Returns: CRMScript.Global.String
Example:
GetQuantityUnit()
Returns: CRMScript.Global.String - What is the unit (meter, ton, bushel, microsecond, gradus, τρυβλίον, 五合枡, دونم or whatever); Connector handles conversion relative to PriceUnit if they are different.
Example:
Returns: CRMScript.Global.String - Read-only extra information in plain text, supplied by QuoteConnector, used by a future dynamic GUI extension.
Example:
GetRights()
Returns: CRMScript.Global.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.
Will be used by SuperOffice to control the user interface when showing the record.
Example:
GetRule()
Returns: CRMScript.Global.String - 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.
Example:
GetSubscriptionUnit()
Returns: CRMScript.Global.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.
Example:
GetSupplier()
Returns: CRMScript.Global.String - In SuperOffice, an ID from the contact table, when saved as an ERP cache, the name of the supplier.
Example:
GetSupplierCode()
Returns: CRMScript.Global.String - Suppliers part code/number or other key-like field.
Example:
GetUnitCost()
Returns: CRMScript.Global.Float - The cost price. Might not be given, use Decimal.MinValue to signal this.
Example:
GetUnitListPrice()
Returns: CRMScript.Global.Float - The basic/normal/standard price from which the discount is computed from.
The ListPrice will stay the same even when a larger amount is ordered.
Example:
GetUnitMinimumPrice()
Returns: CRMScript.Global.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.
Example:
GetUrl()
Returns: CRMScript.Global.String - URL to product information web page.
Example:
GetVAT()
Returns: CRMScript.Global.Float - 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.
Example:
GetVATInfo()
Returns: CRMScript.Global.String - 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.
Example:
SetCode(String)
Returns: CRMScript.Global.Void
Example:
SetDefaultSubscriptionQuantity(Float)
Returns: CRMScript.Global.Void
Example:
SetDescription(String)
Returns: CRMScript.Global.Void
Example:
SetERPPriceListKey(String)
Returns: CRMScript.Global.Void
Example:
SetERPProductKey(String)
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
SetInAssortment(Bool)
Returns: CRMScript.Global.Void
Example:
SetInStock(Float)
Returns: CRMScript.Global.Void
Example:
SetIsSubscription(Bool)
Returns: CRMScript.Global.Void
Example:
SetItemNumber(String)
Returns: CRMScript.Global.Void
Typically used to sort the items in the quote by some standard way.
Example:
SetName(String)
Returns: CRMScript.Global.Void
Example:
SetPriceUnit(String)
Returns: CRMScript.Global.Void
Example:
SetProductCategoryKey(String)
Returns: CRMScript.Global.Void
Example:
SetProductFamilyKey(String)
Returns: CRMScript.Global.Void
Example:
SetProductId(Integer)
Returns: CRMScript.Global.Void
Example:
SetProductTypeKey(String)
Returns: CRMScript.Global.Void
Example:
SetQuantityUnit(String)
Returns: CRMScript.Global.Void
Example:
Returns: CRMScript.Global.Void
Example:
SetRights(String)
Returns: CRMScript.Global.Void
Will be used by SuperOffice to control the user interface when showing the record.
Example:
SetRule(String)
Returns: CRMScript.Global.Void
Will NOT be used by SuperOffice.
Example:
SetSubscriptionUnit(String)
Returns: CRMScript.Global.Void
Example:
SetSupplier(String)
Returns: CRMScript.Global.Void
Example:
SetSupplierCode(String)
Returns: CRMScript.Global.Void
Example:
SetUnitCost(Float)
Returns: CRMScript.Global.Void
Example:
SetUnitListPrice(Float)
Returns: CRMScript.Global.Void
The ListPrice will stay the same even when a larger amount is ordered.
Example:
SetUnitMinimumPrice(Float)
Returns: CRMScript.Global.Void
Example:
SetUrl(String)
Returns: CRMScript.Global.Void
Example:
SetVAT(Float)
Returns: CRMScript.Global.Void
In the Superoffice product register, this field is available in the product admin GUI.
Example:
SetVATInfo(String)
Returns: CRMScript.Global.Void
Not used in any business logic in SuperOffice; available to document templates.
Example: