--- title: "Simulate ERP Sales Order" slug: "simulate-erp-sales-order" description: "Use this extension point to run a script to enable a custom implementation when ERP pricing is performed." updated: 2026-06-02T14:03:49Z published: 2026-06-02T14:03:49Z canonical: "docs.zilliant.com/simulate-erp-sales-order" excludeFromExternalSearch: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.zilliant.com/llms.txt > Use this file to discover all available pages before exploring further. # Simulate ERP Sales Order ## Purpose Allows a script to be executed to enable a custom implementation when ERP pricing is performed. ## Setup 1. Upload the script for **Simulate ERP Sales Order**. For details about uploading and configuring Groovy scripts, read [Upload a Groovy script](/v1/docs/upload-a-groovy-script). 2. [Enable the script.](/main/docs/simulate-erp-sales-order#enable-the-script) ### Enable the script You must enable this script in system settings. Follow these steps: 1. In the CPQ application, select **Administration**. 2. From the top navigation bar, select **Master Data Management**. 3. Select **SettingBoolean**. 4. Search for **Enable Custom Simulate ERP Sales Order**. 5. Set the **Setting Value Boolean** switch to **YES**. ## Binding variables In addition to the [common binding variables](/v1/docs/binding-variables), the following binding variables are available for this extension point. | Variable name | Class | Description | | --- | --- | --- | | salesItemsTree | SalesItemsTree | Represents the quote. It contains the functions you can use to query and modify the quote and its line item data. | | quoteBO | BusinessObject | Quote business object. | | uomCollection | UnitOfMeasureCollection | POJO class with unit of measurement information. | For details about the classes listed in this table, including available methods, fields, and method signatures, read the [Zilliant Groovy API reference](/main/docs/groovy-api-reference). ## Expected output Boolean value indicating whether the process encountered an error: - **True**—Process encountered an error. - **False**—Process was successful. ## Script execution If the setting is enabled, the script uploaded for this extension point runs automatically when the user selects [**ERP Pricing** in a quote](/main/docs/manage-quote-pricing#to-manually-update-the-pricing). If [Enable Custom Simulate ERP Sales Order](/main/docs/simulate-erp-sales-order#enable-the-script) is set to **NO**, the standard implementation is used even if a script is uploaded to this extension point. If the setting is set to **YES** but no script is uploaded to the extension point, the action will fail.