Commit e704c620 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix(sports): skip payment step for returning players who already paid

When registration_fee_paid=1 on the player, set form_payment_status='paid'
at registration creation so determineStep() jumps to photo (step 2) directly.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 040fdfa4
...@@ -122,7 +122,7 @@ final class RegistrationWizardService ...@@ -122,7 +122,7 @@ final class RegistrationWizardService
'card_fee' => 0, 'card_fee' => 0,
'form_fee' => 0, 'form_fee' => 0,
'total_fees' => $formAlreadyPaid ? 0 : $fees['total_fees'], 'total_fees' => $formAlreadyPaid ? 0 : $fees['total_fees'],
'form_payment_status' => 'unpaid', 'form_payment_status' => $formAlreadyPaid ? 'paid' : 'unpaid',
'branch_id' => $branch ? (int) $branch['id'] : null, 'branch_id' => $branch ? (int) $branch['id'] : null,
'created_by' => $employee ? (int) $employee->id : null, 'created_by' => $employee ? (int) $employee->id : null,
'created_at' => date('Y-m-d H:i:s'), 'created_at' => date('Y-m-d H:i:s'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment