CommissionStatement

fancy-mlm-ui

Per-period earnings ledger — level, source member, tier multiplier, and amount per row, with a paid/pending status and totals.

Registry JSON
Why
A referral payout the member can't audit is a support ticket. Ad-hoc earnings tables get the totals wrong the first time a clawback appears — reversed rows keep counting, trust evaporates.
What
CommissionStatement is a controlled ledger over the engine's RewardComputation rows: level, recipient, tier, amount, and a status per row (paid / pending / held / reversed). Reversed rows strike through and are excluded from the folded paid total automatically. Rows carry stable data-mlm-commission-row handles.
How
Map your reward log (the sandbox uses fun-lab's EventLog with source=mlm) into rows, pass a formatAmount for your currency/points, done. New rewards prepend — the component recomputes the total from the controlled value.