Commit 94d8d11b authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix(sports): returning players get status=completed + payment_status=paid

When registration_fee_paid=1, the player already paid before. Set both
status='completed' and payment_status='paid' at creation so generateCard()
works without the cashier needing to process a 0 EGP payment.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent e704c620
......@@ -117,7 +117,8 @@ final class RegistrationWizardService
'player_type' => $playerType,
'member_id' => $memberId > 0 ? $memberId : null,
'national_id' => $nationalId ?: null,
'status' => 'in_progress',
'status' => $formAlreadyPaid ? 'completed' : 'in_progress',
'payment_status' => $formAlreadyPaid ? 'paid' : 'unpaid',
'registration_fee' => $formAlreadyPaid ? 0 : $fees['registration_fee'],
'card_fee' => 0,
'form_fee' => 0,
......
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