The Compensation FrameworkExamples
Straight Commission - Billing Frequency Based Commission
This rule pays straight commission on invoices based on their billing frequency, but only for deals in the "Won" stage. Each billing type (monthly, yearly, quarterly and semiannual) has its own commission rate.
🔍 How It Works
- Start node initiates the rule.
- Filter node restricts the scope to
deal.stage == "Won". - Multi-path node splits logic based on
billing_period:
"monthly"→ 2%"yearly"→ 4%"quarterly"or"semiannual"→ 5%
- Each path goes through a commission node that calculates the payout based on
invoice.total. - All payouts are routed to a payment node which pays 100% to the
ownerin the current month.
🧩 Nodes Used
| Node Type | Purpose |
|---|---|
start | Entry point for the rule logic. |
filter | Filters deals where deal.stage == "Won". |
multi-path | Routes logic to separate commission tiers based on billing_period. |
commission | Calculates payout using a rate and the invoice.total field. |
payment | Sends payout to the deal owner in the current month. |
💰 Commission Tiers
| Billing Frequency | Rate |
|---|---|
| Monthly | 2% |
| Yearly | 4% |
| Semiannual/Quarterly | 5% |
📤 Payout
- Recipient: Deal owner
- Timing: Current month
- Amount: 100% of calculated commission
🧱 Full Dolfin Diagram
Sample test case
📄 Example Invoices for a Monthly Commission Cycle
| Invoice ID | Deal ID | Billing Period | Stage | Amount (USD) | Contributes? | Commission % | Commission Value |
|---|---|---|---|---|---|---|---|
| INV-001 | D-101 | monthly | Won | 10,000 | ✅ Yes | 2% | 200 |
| INV-002 | D-102 | yearly | Won | 24,000 | ✅ Yes | 4% | 960 |
| INV-003 | D-103 | quarterly | Won | 18,000 | ✅ Yes | 5% | 900 |
| INV-004 | D-104 | onboarding | Won | 8,000 | ❌ No | — | 0 |
| INV-005 | D-105 | monthly | Open | 15,000 | ❌ No | — | 0 |
📊 Commission Summary
Only invoices tied to Won deals and supported billing periods are considered.
Applied Logic:
- Monthly invoices → 2% commission
- Yearly invoices → 4% commission
- Quarterly/Semiannual invoices → 5% commission
- Unsupported billing periods or deal stages → 0%
Total Commission Payout:
- INV-001: $200
- INV-002: $960
- INV-003: $900
- Total: $2,060
💰 Final Payout
- Rule Type: Commission
- Calculation Basis: Per invoice
- Timing: Paid in current month
- Recipient: Deal owner
- Total Commission: $2,060