Quote Calculator Plugin Methods
Javascript Quote Calculator plugins can reference several optional methods. You can
export any, all, or none of them to achieve your desired behavior.
| Available in: Salesforce CPQ Winter ’16 and later |
| Param | Type | Description |
|---|---|---|
| {QuoteLineModel[]} | quoteLineModels | An array containing Javascript representations of all lines in a quote. |
The calculator calls this method before formula fields are evaluated. Returns {promise}.
| Param | Type | Description |
|---|---|---|
| {QuoteModel} | quoteModel | Javascript representation of the quote you’re evaluating |
| (QuoteLineModel[]} | quoteLineModels | An array containing Javascript representations of all lines in the quote |
The calculator calls this method before calculation begins, but after formula fields have been evaluated. Returns {promise}.
| Param | Type | Description |
|---|---|---|
| {QuoteModel} | quoteModel | Javascript representation of the quote you’re evaluating |
| (QuoteLineModel[]} | quoteLineModels | An array containing Javascript representations of all lines in the quote |
The calculator calls this method before it evaluates price rules. Returns {promise}.
| Param | Type | Description |
|---|---|---|
| {QuoteModel} | quoteModel | Javascript representation of the quote you’re evaluating |
| (QuoteLineModel[]} | quoteLineModels | An array containing Javascript representations of all lines in the quote |
The calculator calls this method after it evaluates price rules. Returns {promise}.
| Param | Type | Description |
|---|---|---|
| {QuoteModel} | quoteModel | Javascript representation of the quote you’re evaluating |
| (QuoteLineModel[]} | quoteLineModels | An array containing Javascript representations of all lines in the quote |
The calculator calls this method after it completes a calculation, but before re-evaluating formula fields. Returns {promise}