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

Prev Next

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.
  2. 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, 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.

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.

If Enable Custom Simulate ERP Sales Order 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.