Add receipt numbers to membership payments

This commit is contained in:
2026-02-05 16:41:04 +08:00
parent 8fc4adb6ad
commit 329877b5bf
12 changed files with 100 additions and 10 deletions

View File

@@ -25,6 +25,7 @@ class AdminPaymentController extends Controller
'amount' => ['required', 'numeric', 'min:0'],
'method' => ['nullable', 'string', 'max:255'],
'reference' => ['nullable', 'string', 'max:255'],
'receipt_number' => ['nullable', 'string', 'max:255'],
]);
$payment = $member->payments()->create($validated);
@@ -52,6 +53,7 @@ class AdminPaymentController extends Controller
'amount' => ['required', 'numeric', 'min:0'],
'method' => ['nullable', 'string', 'max:255'],
'reference' => ['nullable', 'string', 'max:255'],
'receipt_number' => ['nullable', 'string', 'max:255'],
]);
$payment->update($validated);