fix enrollment for the new school-year
Tests / PHPUnit (push) Successful in 1m26s

This commit is contained in:
root
2026-08-07 23:43:31 -04:00
parent b6f3b14e7b
commit 1ef2800f12
66 changed files with 8997 additions and 498 deletions
@@ -261,6 +261,7 @@ class ExpenseController extends BaseController
if (!$expense) {
throw new \RuntimeException('Expense not found');
}
$this->assertSchoolYearNameWritable((string)($expense['school_year'] ?? ''));
$db->query(
"SELECT id FROM reimbursements WHERE expense_id = ? AND LOWER(status) NOT IN ('reversed','rejected','cancelled','canceled','voided') FOR UPDATE",
[$id]
@@ -338,6 +339,7 @@ class ExpenseController extends BaseController
if (!$expense) {
throw PageNotFoundException::forPageNotFound("Expense #$id not found");
}
$this->assertSchoolYearNameWritable((string)($expense['school_year'] ?? ''));
// Base rules
$rules = [