Commission Specific FunctionsLast Updated: September 09, 2019
Spiff has built a few commission specific functions. These functions help to aggregate and simplify some common commission math that is often complicated. For example, many commissions use tiered accelerators. Sometimes these accelerators affect commissions in a marginal way (like a tax-bracket) and sometimes they don't.
Spiff provides two functions that simplify this kind of math:
- marginal_payout function--combined with a Range Table this provides a tax-bracket commission calculation across any relevant tiers
- tiered_payout function--combined with a Range Table this provides non-marginal commission calculations by selecting one particular tier