add new ststs feature
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 51s
Tests / PHPUnit (push) Successful in 1m25s

This commit is contained in:
root
2026-09-13 02:20:14 -04:00
parent 1787144f27
commit c3a30989b2
16 changed files with 1395 additions and 84 deletions
+2 -2
View File
@@ -196,7 +196,7 @@ class ExpenseController extends BaseController
}
$status = $isDonation ? 'approved' : 'pending';
$statusReason = $isDonation ? 'Marked as Donation (non-reimbursable).' : null;
$statusReason = $isDonation ? 'Recorded as donation income to the school (non-reimbursable).' : null;
$db = \Config\Database::connect();
$db->transBegin();
@@ -399,7 +399,7 @@ class ExpenseController extends BaseController
if ($isDonation) {
$updateData['status'] = 'approved';
$updateData['status_reason'] = 'Marked as Donation (non-reimbursable).';
$updateData['status_reason'] = 'Recorded as donation income to the school (non-reimbursable).';
$updateData['approved_by'] = $userId ?: null;
$updateData['reimbursement_id'] = null;
} elseif (($expense['category'] ?? '') === 'Donation') {