Calculation Logics Overview

For Quotes, Agreements/Promotions, Rebate Agreements, Price Lists, Custom Forms, Compensation Plans and Deal Plans you can run calculation logics both at the header level and line item level. This section summarizes in which order the logics are executed and where they are defined.

Order

If we have, for example, a Quote with line items and we select the action Price Full Quote, the following steps are performed:

  1. Header logic is executed.

  2. Line item logic is executed – once for each line.

  3. Header logic is executed again (in the 'isPostPhase' mode).

If you use the action Price Changed Items, the same sequence of steps is performed, only the line item logic is executed just for the changed lines.

Definitions

Header logic is defined in the Quotes / Agreements & Promotions / Rebate Agreements / Price Lists / Custom Forms / Compensation Plans / Deal Plans sections. In these sections, there can be multiple logics; for some document types only the one marked as Default is used for the given document. This logic runs in the context of the whole document and uses all its data (including the line items).

Line item logic is defined in the Generic Logic section. In this section there can be multiple logics; only the one marked as Default is used. This default logic is applied to:

  • Quotes

  • Agreements/Promotions and Rebate Agreements – if no agreement/promotion or rebate logic is specified.

  • Price Lists – if no logic is specified for the particular product and no default logic is selected in the Get Parameters step.

If there are product or object logics specified, some priority rules apply.

To see a full list of objects for which you can use logics, go to the Knowledge Base article Logic Types Cheatsheet.

Found an issue in documentation? Write to us.

 
Pricefx version 12.0