This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user