This Extension Point allows a script implementation to be provided for creating ERP Price Items (there is no default implementation for that feature).
Initial Setup
Upload the script file to the Groovy Script with the name “Create Price to ERP”. Please refer to Groovy Service Introduction - Uploading a New Groovy Script for more details of how to do this.
Additional Binding Variables
The following binding variable(s) are made available for this extension point, in addition to the common binding variables listed in Groovy Service Introduction - Common Binding Variables.
Variable Name |
Class |
Description |
---|---|---|
activeObject |
String |
The URI of the active object (which is the quote URI in this case). |
salesItemsTree |
SalesItemsTree |
Represents the Quote, it contains the functions that can be used to query the quote and its line items data as well as to modify them. |
currencyCollection |
CurrencyCollection |
The list of currency data. |
salesItemDTOs |
Collection<JSONBusinessObjectDTO> |
The list of selected sales items to create Price Items for. |
Expected Output
The script should return a Map<BusinessObject, String>, which is a mapping between the sales items (as a BusinessObject) and the unique identifier of the price item created for it in ERP (as a String).
Script Execution
The script that has been uploaded for this extension point will be executed automatically when the user creates the ERP Price Data in the ERP Helpers screen. Please consult the ERP Integration Guide on the details of how to perform this action.