Skip to main content
Information about a connection to the ERP system.

Constructors

NSQuoteLine()

Initializes a new instance of the NSQuoteLine class.

Methods

GetCode()

Returns: CRMScript.Global.String - A value the salesmen use to quickly find the correct product. Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link. Example:

GetDeliveredQuantity()

Returns: CRMScript.Global.Float - How many units have been delivered* updated by ERP system. Example:

GetDescription()

Returns: CRMScript.Global.String - A longer description for the product. Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link. Example:

GetDiscountAmount()

Returns: CRMScript.Global.Float - The discount for the line, in whatever currency the sale is in. Both ‘DiscountPercent’ and ‘DiscountAmount’ shall be filled out, but the UserValueOverride field must be set to the field the user actually changed last. If this field is filled out by the user, it overrides any discount suggested by the connector. If the user has not filled this in, the system will copy the ERP discount amount to this field. Example:

GetDiscountPercent()

Returns: CRMScript.Global.Float - The discount for the line, in percent. Both ‘DiscountPercent’ and ‘DiscountAmount’ shall be filled out, but the UserValueOverride field must be set to the field the user actually changed last. If this field is filled out by the user, it overrides any discount suggested by the connector. If the user has not filled this in, the system will copy the ERP discount amount to this field. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’. Example:

GetEarningAmount()

Returns: CRMScript.Global.Float - The earning, in whatever currency the sale is in. Both ‘EarningAmount and ‘EarningPercent shall be filled out, but the UserValueOverride field must be set to the field the user actually changed last. Example:

GetEarningPercent()

Returns: CRMScript.Global.Float - The earning, in percent. Both ‘EarningAmount and ‘EarningPercent shall be filled out, but the UserValueOverride field must be set to the field the user actually changed last. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’. Example:

GetERPDiscountAmount()

Returns: CRMScript.Global.Float - The discount the system calculates based on customer / quantity / whatever. Can be overridden by the salesman in the field ‘DiscountPercent’ or ‘DiscountAmount’. If UserValueOverride is set to ‘None’ then the value is copied to DiscountAmount. Both fields ERPDiscountPercent and ERPDiscountAmount will be filled out. Example:

GetERPDiscountPercent()

Returns: CRMScript.Global.Float - The discount the system calculates based on customer / quantity / whatever. Can be overridden by the salesman in the field ‘DiscountPercent’ or ‘DiscountAmount’. Both fields ERPDiscountPercent and ERPDiscountAmount will be filled out. If UserValueOverride is set to ‘None’ then the value is copied to DiscountPercent. The Percentage is given in integer form, i.e. ‘12%’ is represented as ‘12’. Example:

GetERPProductKey()

Returns: CRMScript.Global.String - Foreign key of product+pricelist this line is based on. Can be blank since the QuoteLine doesn’t have to be connected to a product. Example:

GetERPQuoteLineKey()

Returns: CRMScript.Global.String - The foreign key to the quoteline in ERP system (if it has such a representation). Example:

GetExtraField1()

Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display. Example:

GetExtraField2()

Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display. Example:

GetExtraField3()

Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display. Example:

GetExtraField4()

Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display. Example:

GetExtraField5()

Returns: CRMScript.Global.String - A simple field for adding information that the Connector can provide, and that the quote document need to display. Example:

GetExtraInfo()

Returns: CRMScript.NetServer.NSProductExtraDataField[] - Extra information, supplied by QuoteConnector, used by a future dynamic GUI extension. Example:

GetIsSubscription()

Returns: CRMScript.Global.Bool - Is this a subscription product, sold in repeating intervals/amounts? Example:

GetItemNumber()

Returns: CRMScript.Global.String - Norwegian «Postnummer». Specific numbers from some hierarchy, for instance ‘1.4.3.2’. Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link. Example:

GetName()

Returns: CRMScript.Global.String - The name of the product. Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link. 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. Is stored here if the user changes the value from the product in the pricelist, or just enters a QuoteLine without a product link. 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. Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link. Example:

GetProductTypeKey()

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. Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link. Example:

GetQuantity()

Returns: CRMScript.Global.Float - How many units; this is a decimal field since you might want to offer fractional units (2.5kg, or 0.5PC). 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:

GetQuoteAlternativeId()

Returns: CRMScript.Global.Integer - The alternative this line is part of, the conceptual Parent in CRM database. Example:

GetQuoteLineId()

Returns: CRMScript.Global.Integer - Primary key. Example:

GetRank()

Returns: CRMScript.Global.Integer - QuoteLines can be re-ordered, so we must track the ordering. Example:

GetRawExtraInfo()

Returns: CRMScript.Global.String - Read-only extra information in plain text, supplied by QuoteConnector, used by a future dynamic GUI extension. Example:

GetReason()

Returns: CRMScript.Global.String - If QuoteStatus is not OK, then this field contains a localized explanation that the user can be shown. 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 quote line, 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. Example:

GetStatus()

Returns: CRMScript.Global.Integer - If there was a problem with for instance calculation, this field is set to warning or error. See <xref href=“CRMScript.NetServer.QuoteStatus” data-throw-if-not-resolved=“false”></xref>.
Typically shown as an icon.
Example:

GetSubscriptionQuantity()

Returns: CRMScript.Global.Float - The default number of SubscriptionUnits to suggest when creating quote lines from this product. Example:

GetSubscriptionStart()

Returns: CRMScript.Global.DateTime - Start date for subscription, as offered. 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:

GetSubTotal()

Returns: CRMScript.Global.Float - Value to help the user interface, is equal to ‘Quantity * ListPrice’ Example:

GetSupplier()

Returns: CRMScript.Global.String - The name of the supplier. Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link. Example:

GetSupplierCode()

Returns: CRMScript.Global.String - The suppliers’ code or part number for this product.
Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link.
Example:

GetThumbnail()

Returns: CRMScript.Global.String - A small image of the product, typically used to show in a list. Base64 encoded png. Example:

GetTotalPrice()

Returns: CRMScript.Global.Float - TotalPrice = SubTotal* DiscountAmount or TotalPrice = (UnitCost * Quantity) + EarningAmount, according to what the user changed last. Example:

GetUnitCost()

Returns: CRMScript.Global.Float - The cost price per unit for this product. May be filled in by connector if it has the Provide-Cost capability. Example:

GetUnitListPrice()

Returns: CRMScript.Global.Float - The standard list price; as given by ERP Connector, OR overridden by user. Example:

GetUnitMinimumPrice()

Returns: CRMScript.Global.Float - The minimum price this line can be sold for (to limit discounting). Will come from the connector. List price per unit must exceed the minimum price per unit. Example:

GetUrl()

Returns: CRMScript.Global.String - A URL to the product info. Can be empty. Is stored here if the user changes the value from the product in the price list, or just enters a QuoteLine without a product link. Example:

GetUserValueOverride()

Returns: CRMScript.Global.Integer - Has the pre-calculated (from ERP) price information been overridden, and how. See <xref href=“CRMScript.NetServer.ValueOverride” data-throw-if-not-resolved=“false”></xref>.
If the user has filled out the discountpercentage field, then the UserValueOverride field is set to OverridePercent. (The DiscountAmount, EarningPercent, EarningAmount and TotalPrice fields are calculated based on the DiscountPercent.)
Example:

GetVAT()

Returns: CRMScript.Global.Float - Tax/VAT* THIS IS A PERCENTAGE. The connector is responsible for populating this field; the percentage will be used to calculate VAT amounts available as merge fields in the document templates (but amounts are never stored in the database). Example:

GetVATInfo()

Returns: CRMScript.Global.String - Tax/VAT information, Extra info about VAT that the connector might insert, and the users might want to specify on the quote. The core CRM product has no business logic for this field, it is wholly up to connectors to use it. Example:

SetCode(String)

Returns: CRMScript.Global.Void Example:

SetDeliveredQuantity(Float)

Returns: CRMScript.Global.Void Example:

SetDescription(String)

Returns: CRMScript.Global.Void Example:

SetDiscountAmount(Float)

Returns: CRMScript.Global.Void Example:

SetDiscountPercent(Float)

Returns: CRMScript.Global.Void Example:

SetEarningAmount(Float)

Returns: CRMScript.Global.Void Example:

SetEarningPercent(Float)

Returns: CRMScript.Global.Void Example:

SetERPDiscountAmount(Float)

Returns: CRMScript.Global.Void Example:

SetERPDiscountPercent(Float)

Returns: CRMScript.Global.Void Example:

SetERPProductKey(String)

Returns: CRMScript.Global.Void Example:

SetERPQuoteLineKey(String)

Returns: CRMScript.Global.Void Example:

SetExtraField1(String)

Returns: CRMScript.Global.Void Example:

SetExtraField2(String)

Returns: CRMScript.Global.Void Example:

SetExtraField3(String)

Returns: CRMScript.Global.Void Example:

SetExtraField4(String)

Returns: CRMScript.Global.Void Example:

SetExtraField5(String)

Returns: CRMScript.Global.Void Example:

SetExtraInfo(NSProductExtraDataField[])

Returns: CRMScript.Global.Void Example:

SetIsSubscription(Bool)

Returns: CRMScript.Global.Void Example:

SetItemNumber(String)

Returns: CRMScript.Global.Void 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:

SetProductTypeKey(String)

Returns: CRMScript.Global.Void Example:

SetQuantity(Float)

Returns: CRMScript.Global.Void Example:

SetQuantityUnit(String)

Returns: CRMScript.Global.Void Example:

SetQuoteAlternativeId(Integer)

Returns: CRMScript.Global.Void Example:

SetQuoteLineId(Integer)

Returns: CRMScript.Global.Void Example:

SetRank(Integer)

Returns: CRMScript.Global.Void Example:

SetRawExtraInfo(String)

Returns: CRMScript.Global.Void Example:

SetReason(String)

Returns: CRMScript.Global.Void Example:

SetRights(String)

Returns: CRMScript.Global.Void Example:

SetRule(String)

Returns: CRMScript.Global.Void Example:

SetStatus(Integer)

Returns: CRMScript.Global.Void Example:

SetSubscriptionQuantity(Float)

Returns: CRMScript.Global.Void Example:

SetSubscriptionStart(DateTime)

Returns: CRMScript.Global.Void Example:

SetSubscriptionUnit(String)

Returns: CRMScript.Global.Void Example:

SetSubTotal(Float)

Returns: CRMScript.Global.Void Example:

SetSupplier(String)

Returns: CRMScript.Global.Void Example:

SetSupplierCode(String)

Returns: CRMScript.Global.Void Example:

SetThumbnail(String)

Returns: CRMScript.Global.Void Example:

SetTotalPrice(Float)

Returns: CRMScript.Global.Void Example:

SetUnitCost(Float)

Returns: CRMScript.Global.Void Example:

SetUnitListPrice(Float)

Returns: CRMScript.Global.Void Example:

SetUnitMinimumPrice(Float)

Returns: CRMScript.Global.Void Example:

SetUrl(String)

Returns: CRMScript.Global.Void Example:

SetUserValueOverride(Integer)

Returns: CRMScript.Global.Void
If the user has filled out the discountpercentage field, then the UserValueOverride field is set to OverridePercent. (The DiscountAmount, EarningPercent, EarningAmount and TotalPrice fields are calculated based on the DiscountPercent.)
Example:

SetVAT(Float)

Returns: CRMScript.Global.Void Example:

SetVATInfo(String)

Returns: CRMScript.Global.Void Example: