Fix: renewal invoices now attributed to enrollment creator, not random User::first()
The old code tried to find 'system@oc-sport.com' then fell back to
User::first() which silently attributed 222 invoices to a random
Head Trainer. Now uses enrollment.created_by as the actor — if that
user no longer exists, the invoice is skipped with an error log.
Co-Authored-By:
Claude Opus 4.6 <noreply@anthropic.com>
Showing
Please register or sign in to comment