This extension point allows a script to be executed when changes made on the business attributes below for a quote:
Quote’s Business Data Attributes:
- Schema.quoteRequestedDate,
- Schema.quotePricingDate,
- Schema.salesDocumentDateOfExpiry,
- Schema.quoteEffectiveDate,
- Schema.documentHeaderDiscount,
Quote’s Business Relation Attributes:
- Schema.hasSalesDocumentType,
- Schema.hasSalesOrg,
- Schema.hasDistributionChannel,
- Schema.hasDivision,
- Schema.hasCurrency,
- Schema.hasPriceGroup,
- Schema.hasPriceList,
- Schema.hasShippingCondition,
Initial Setup
Upload the script file to the Groovy Script with the name “On Change Quote Pricing”. 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 |
---|---|---|
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
N.A.
Script Execution
The script that has been uploaded for this extension point will be executed automatically when the user updated the quote pricing relevant BDA and BRA stated above.