Custom Package Total Calculation
The sample JavaScript script can be used in the Quote Line Calculator to calculate the total price for all components in a quote line and then store that value in a custom field.
| Required Editions |
|---|
| Available in: Salesforce CPQ Winter ’16 and later |
This sample JavaScript code exports all of the methods that the calculator looks for, and documents their parameters and return types.
The sample script assumes the Salesforce admin created a custom field Component Custom Total on the Quote Line object.