Affiliate commissions ledger
CommissionLog lines: pending/approved/paid/reversed. Uploader = file owner. Hold via aff.pending_delay_days.
Affiliate commissions ledger
Manage commission lines before and after members withdraw.
Where to find it
Admin → Payout → Affiliate commissions (/admin/payments/affiliate-commissions)
How it works
Tabs: Commissions, Conversions, Top earners. States: Pending / Approved / Paid / Reversed.
Roles: uploader (file owner), webmaster, referrer (% of earners' commission), direct_premium (no file/site). Same user as uploader+webmaster → webmaster row skipped. Math: floor(gross * pct / 100).
Pending → approved after availableAt (aff.pending_delay_days, default 7; 0 = immediate). Cron every 15 minutes (disable with AFFILIATE_COMMISSION_APPROVE_DISABLED). Admins can early-Approve / Unapprove / Reverse / Restore. Locked when In payout or Final (paid).
Site revSharePercent > 0 overrides global webmaster %; 0 = use global.
Money path
Completed premium payment → conversion → commission rows (if system on + attribution) → hold → approved → withdraw via Payout requests → mark paid.
Common problems
Not the same as Payout requests
Commissions must be available before members can withdraw; payouts are a separate queue.