Constructors
NSQuoteAgent()
Methods
AddSaleTypeQuoteAttachment(Integer,Integer)
Adds a new quote attachment document to a sale typeApproveQuoteVersion(Integer,String,Integer,String)
Approves a quote versionCanConnectorProvideCapability(Integer,String)
CopyQuoteAlternative(Integer,Integer,String)
Copies a quote alternative from the same sale and adds it to a version.CopySuperOfficePriceList(Integer,String,DateTime,DateTime,Integer,Bool)
Creates a copy of a PriceList in the SuperOffice databaseCreateAndSaveQuote(Integer,Integer,String)
Creates a new quote on a sale.CreateAndSaveQuoteFromSale(Integer,Integer)
Creates a copy the active version with connected alternatives and quotelines from another sale.CreateAndSaveQuoteVersion(Integer)
Created a new NSQuoteVersion based on another NSQuoteVersion on the same Quote.CreateConnectionFromConnectorName(String)
Creates a new connection.CreateDefaultPriceList()
Sets default values into a new NSPriceList.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateDefaultProduct()
Sets default values into a new NSProduct.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateDefaultQuoteAlternative()
Sets default values into a new NSQuoteAlternative.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateOrUpdateQuoteVersionAttachments(Integer)
Looks at the Quote version, related sale and sale type, and ensures that the correct NSQuoteVersionAttachment records exist. This method may create or delete recordsCreateQuoteAlternative(Integer,String,String)
Creates a new quote alternative on a version.CreateQuoteLine(Integer,String)
Creates a quoteline based on a product key.CreateQuoteLineFromProduct(Integer,NSProduct)
Creates a quoteline based on a product.DeleteConnection(Integer)
Marks a connection as deleted.DeletePriceList(Integer)
Deletes the NSPriceListDeleteProduct(Integer)
Deletes the NSProductDeleteQuote(Integer)
Deletes a QuoteDeleteQuoteAlternative(Integer)
Deletes a quote alternativeDeleteQuoteLine(Integer)
Deletes the QuoteLine in the SuperOffice databaseDeleteQuoteLines(Integer[])
Deletes the QuoteLines in the SuperOffice databaseDeleteSaleTypeQuoteAttachment(Integer)
Deletes the sale type quote attachment with the given IDFindProduct(Integer,String,String)
Gets a product, from the ProductProviderGenerateQuoteDocuments(Integer,Integer,Bool,Integer,Bool,String)
Generate all the documents required to send the Quote as an email to the prospect, or an Order Confirmation; it just depends on the template IDs for the lines doc and mail body.Quote version status is not changed by this method.
GetActivePriceLists(Integer,String)
Gets the available active PriceLists in a specific currency.GetActivePriceListsByCurrencyId(Integer,Integer)
Gets the available active PriceLists in a specific currency.GetAllAvailableQuoteConnections()
Gets all available connections. Some installed connections may not be available to the user.Use GetAllAvailableQuoteConnectionsWithPriceLists if you need the price lists on the connections as well.
GetAllAvailableQuoteConnectionsWithPriceLists()
Gets all available connections. Some installed connections may not be available to the user. Includes price lists for the connection.This is a heavy call
GetAllInstalledQuoteConnections()
Gets all installed connections. Some installed connections may not be available to the user.GetAllPriceLists(Integer,String)
Gets the all PriceLists in all currencies, including those inactive.GetAllPriceListsByCurrencyId(Integer,Integer)
Gets the all PriceLists in all currencies, including those inactive.GetAllQuoteLineConfigurations()
Returns all the configuration fieldsGetConfigurationFields(Integer,String)
Used by ADMIN. Asks for metadata needed to populate admin dialog that takes in the information needed to create a connection to an ERP system. The values entered in the dialog are stored in the SuperOffice database and used when InitializeConnector is called by the client.GetConnection(Integer)
Returns the specified connection.GetConnectionConfigFields(Integer)
Returns the config fields for the connection.GetConnectionsForAssociate(Integer)
Returns all connections available for the specified user.GetConnectionStartupErrors()
Returns an array of PluginResponseInfos for all failed connection initializations.GetConnectionStartupResponse(Integer)
Returns the PluginResponseInfo for the connection initialization.Does not initialize the connection, just returns what happened when initialize was called.
GetConnectorCapabilities(Integer)
Gets a list of connector capabilitiesGetConnectorCapabilityNames(Integer)
Gets a list of all possible connector capabilitiesGetExtraInfo(String)
Converts an XML string into an object representation.GetInUseQuoteLineConfigurations()
Returns the configuration fields that should be visible in the GUI.GetOrderConfirmation(Integer,Integer)
Gets a base64-encoded data stream that is just the order confirmation document, for the given quote version; no permanent document is created or stored anywhere; the result is a PDFGetOrderState(Integer)
If there is a problem with a quoteline, the error description shall be placed in the status and reason fields of the quoteline, if there is a problem with the alternative, the error description shall be placed in the status and reason fields of the alternative. A summary of all the problems (if any) should be placed in the response object. Requires that the Create-Order capability is true.GetPriceList(Integer)
Gets an NSPriceList object.GetProduct(Integer,String)
Gets a product with the given keyGetProductFromDbId(Integer)
Gets a product with the given database IDGetProductImage(Integer,String,Integer)
Gets an image connected to a product, from the ProductProviderGetQuote(Integer)
Gets an NSQuoteGetQuoteAlternative(Integer)
Gets an NSQuoteAlternative object.GetQuoteAlternatives(Integer)
Gets all quote alternatives for a quote versionGetQuoteEntity(Integer)
Gets a QuoteGetQuoteEntityFromSaleId(Integer)
Gets a Quote for a saleGetQuoteFromSaleId(Integer)
Gets an NSQuote for a saleGetQuoteLine(Integer)
Gets QuoteLine from databaseGetQuoteLineConfiguration(Integer)
Returns the configuration field with the given IDGetQuoteLineConfigurationFromFieldName(String)
Returns the configuration field with the given field nameGetQuoteLineImage(Integer,Integer)
Gets an image connected to a quoteline, either from the ERPProvider or from the SuperOffice databaseGetQuoteLines(Integer)
Gets all QuoteLines from an alternativeGetQuoteList(String)
Gets a named list from the connector.GetQuoteVersion(Integer)
Gets an NSQuoteVersionGetQuoteVersions(Integer)
Gets all quote versions for a saleGetQuoteVersionWorkflowButtonStates(Integer,Integer)
Gets all button states for the Quote version dialog.GetQuoteVersionWorkflowImageState(Integer)
Gets state icon and name for the Quote version dialog header.GetQuoteVersionWorkflowState(Integer,Integer)
Gets all button states for the Quote version dialog. Packages ImageState, Button states and status info into one call.Collects most important warnings/errors from across all quote lines/alternatives in this quote version.
GetQuoteVersionWorkflowStatusInfo(Integer)
Gets status info for the Quote version dialog header.Collects most important warnings/errors from across all quote lines/alternatives in this quote version.
HasConnections()
IncludeQuoteVersionAttachment(Integer,Integer,Bool)
Toggles the ‘included’ state of a quote version attachmentThrows exceptions if called on locked versions
MoveQuoteLine(Integer,Bool)
Moves quote line rank up/downPlaceOrder(Integer,Bool,String,String,String)
Places an order in the ERP system.RecalculateQuoteAlternative(Integer)
When the user changes one or more values in a quoteline or a quoteAlternative, the connector gets to change the QuoteLines and the alternative, for instance calculate VAT. RecalculateQuoteAlternative shall be called when the user changes any of the following fields: Quantity, DiscountAmount, DiscountPercent, listprice (if allowed). RecalculateQuoteAlternative will calculate the TotalPrice and the VAT (if possible) for the lines and the alternative.RecalculateQuoteLine(NSQuoteLine,String[])
When the user changes one or more values in a quoteline, the connector gets to change the QuoteLine, for instance calculate VAT. Shall be called when the user changes any of the following fields: Quantity, DiscountAmount, DiscountPercent, ListPrice (if allowed). Will calculate the TotalPrice and the VAT (if possible) for the line.RejectQuoteVersion(Integer,String,Integer,String)
Rejects a quote versionRemoveProduct(Integer)
Removes a product from the databaseRestoreConnection(Integer)
Restores a connection marked as deleted.SaveConnection(NSQuoteConnection)
Saves a connection to the database.SaveConnectionConfigFields(Integer,Map)
Saves the connection config fields.SavePriceList(NSPriceList)
Updates the existing NSPriceList or creates a new NSPriceList if the id parameter is 0SaveProduct(NSProduct)
Updates the existing NSProduct or creates a new NSProduct if the id parameter is 0SaveQuote(NSQuote)
Saves an NSQuoteSaveQuoteAlternative(NSQuoteAlternative)
Updates the existing NSQuoteAlternative or creates a new NSQuoteAlternative if the id parameter is 0SaveQuoteEntity(NSQuoteEntity)
Saves an NSQuoteEntity.Versions and alternatives will not be saved by this call.
SaveQuoteLine(NSQuoteLine)
Saves the NSQuoteLine in the SuperOffice databaseSaveQuoteLineConfiguration(NSQuoteLineConfiguration)
Saves an NSQuoteLineConfiguration object. It is not possible to add a new configuration.SaveQuoteLineConfigurations()
Saves a collection of QuoteLineConfigurations. It is not possible to add a new configurations.SaveQuoteLineImage(Integer,NSImage,Integer)
Saves the image connected to a quoteline in the SuperOffice databaseSaveQuoteLines(NSQuoteLine[])
Saves the QuoteLines in the SuperOffice databaseSaveQuoteVersion(NSQuoteVersion)
Saves a quote versionSaveQuoteVersionNumber(Integer,String)
Save the quote version number if it is validSendQuoteVersion(Integer,DateTime,DateTime,String,String)
Sends the quote to the user’s customer.More parameters to be added later…
TestConnection(String)
Tests if the connection data is sufficient to get a connection with the ERP system. The Connector should try to do some operations to check if the connection has sufficient rights to run. The connection has not been created yet. TestConnection()is called without InitializeConnector being called first.Used by the Admin clients
ToggleProductInAssortment(Integer)
Toggles if the product is in assortment or notToggleQuoteVersionAttachmentIncluded(Integer)
Toggle the ‘included’ state of a quote version attachmentToggleSaleTypeQuoteAttachmentDefaultIncluded(Integer)
Toggles the ‘default included’ state of a sale type quote attachmentUpdateQuoteVersionPrices(Integer)
Updates price on the all the quote lines for each alternative in the current quote versionValidateQuoteVersion(Integer,Integer)
When the user changes one or more values in a quoteline or a quoteAlternative, the connector gets to change the QuoteLines and the alternative, for instance calculate VAT. ValidateQuoteVersion shall be called when the user presses the validate button, presses the send button or closes the quote dialog.RecalculateQuoteAlternative should typically validate all alternatives, set values in extrafields, and set the state in the version.