This Extension Point allows a script implementation to be provided for creating a new material Routing.
Initial Setup
Upload the script file to the Groovy Script with the name “Create Routing in 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 |
---|---|---|
currentSalesItemNode |
SalesItemNode |
The SalesItemNode related to the active object. This variable is only included if the active object is a Sales Item or related to it (e.g. Item Header Price Item). |
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. |
Expected Output
A String value representing a newly created material Routing ID in ERP. Assume creation is successful if the non-empty string value is returned.
Script Execution
The script that has been uploaded for this extension point will be executed automatically when the user creates new material Routing in ERP Helpers screen if the script is uploaded.
If the groovy script is not uploaded, standard implementation is executed.