Wire createCommission() into compliance batch checkout

Compliance batch orders now create commission ledger entries when
a discount code (agent referral) is used. Tracks total order amount,
discount applied, and links to the agent for payout processing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-11 10:55:40 -05:00
parent fa80c6dab9
commit 71d466c922
4 changed files with 204 additions and 0 deletions

Binary file not shown.