Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this section we will show four examples of logics that calculate different types of rebates:

  • Tiered rebate – based on quantities or amounts purchased.
  • Stepped rebate – tiered rebate where the rebate is calculated separately for each tier.
  • Growth rebate – based on a specified increase in purchases.
  • Fixed rebate – not dependent on the purchased amounts.

See also the RebateManager Calculation Logic Examples Rebate Variants section below for detailed explanation of the rebate types.

Tiered Rebate

The complete calculation logic will have the following elements:

...

(tick) From 3.8 Manhattan, api.retainGlobal can be set to true by default in /wiki/spaces/DEV/pages/99575741 General Settings.

Code Block
languagegroovy
titleRetainGlobal
api.retainGlobal=true

...

Code Block
languagegroovy
titleRebateRecords
if (api.isSyntaxCheck()) return
rebateRecords.add()

Stepped Rebate

The complete calculation logic will have the following elements:

...

(tick) From 3.8 Manhattan, api.retainGlobal can be set to true by default in /wiki/spaces/DEV/pages/99575741 General Settings.

Code Block
languagegroovy
titleRetainGlobal
api.retainGlobal=true

...

Code Block
languagegroovy
titleRebateRecords
if (api.isSyntaxCheck()) return
rebateRecords.add()

Growth Rebate

The complete calculation logic will have the following elements:

...

(tick) From 3.8 Manhattan, api.retainGlobal can be set to true by default in /wiki/spaces/DEV/pages/99575741 General Settings.

Code Block
languagegroovy
titleRetainGlobal
api.retainGlobal=true

...

Code Block
languagegroovy
titleRebateRecords
if (api.isSyntaxCheck()) return
rebateRecords.add()

Fixed Rebate

The complete calculation logic will have the following elements:

...

Code Block
languagegroovy
titleRebateRecords
if (api.isSyntaxCheck()) return
rebateRecords.add()

Rebate Variants

The following types are only examples, in Pricefx you can set up any rebate type Condition Type you need.

Tiered Rebate

This is the simplest rebate type that is based on quantities or amounts purchased by the customer. The tiered rebate type defines several tiers with corresponding rebate percentages. The paid out rebate depends on the highest threshold level that has been reached.

...

ThresholdRebate PercentageThreshold ReachedCalculationBonus
$10,0001.0%Yes

$15,0001.5%Yes17,200 * 0.015$258
$20,0002.0%No

Growth Rebate

The growth rebate type is based on a specified increase in purchases. Again, several tiers are defined and the paid out rebate depends on the threshold that has been reached.

...

ThresholdRebate PercentageThreshold ReachedCalculationBonus
10%1.0%Yes

20%1.5%Yes17,200 * 0.015$258
30%2.0%No

Stepped Rebate

The bonus is paid for each tier whose lower threshold has been exceeded but only from the value that is within the tier limits and the percentage specified for that tier is applied.

...