Define basis per member, accrue against real orders, feed the summary into payroll.
Rules defined once; accrual happens automatically against live orders.
An admin sets a commission basis (pct_revenue, flat_per_order, or flat_per_unit). Invalid bases are rejected immediately. As orders come in, commission accrues against the rule; at period end the CommissionSummarySlice (integer minor units) is handed to payroll via getCommissionSummary. If the commission store errors, payroll degrades gracefully. Every mutation writes an immutable audit row.
Bell = in-app alertAmber diamond = automatic validation
app/commission
Live demo
recording from the demo site — coming soon
Define once, accrue automatically. Invalid bases are rejected at the gate; valid rules accrue commission against live orders; the period summary (minor units) flows to payroll via getCommissionSummary (graceful degradation); every mutation lands on the immutable audit trail.