fix financials
Tests / PHPUnit (push) Failing after 1m21s

This commit is contained in:
root
2026-07-18 22:57:40 -04:00
parent 068e739408
commit a30c1398a1
61 changed files with 10908 additions and 1775 deletions
+5 -1
View File
@@ -4,6 +4,7 @@ namespace App\Models;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
use App\Libraries\FinancialStatus;
class ReimbursementModel extends Model
{
@@ -24,10 +25,13 @@ class ReimbursementModel extends Model
'semester',
'check_number',
'reimbursement_method',
'batch_number'
'batch_number',
'updated_by',
];
protected $validationRules = [
'school_year' => 'required|string|max_length[9]',
'amount' => 'if_exist|decimal|greater_than[0]',
'status' => 'if_exist|in_list[' . FinancialStatus::REIMBURSEMENT_PENDING . ',' . FinancialStatus::REIMBURSEMENT_APPROVED . ',' . FinancialStatus::REIMBURSEMENT_PAID . ',' . FinancialStatus::REIMBURSEMENT_REJECTED . ',' . FinancialStatus::REIMBURSEMENT_REVERSED . ',Pending,Approved,Paid,Rejected,Reversed]',
];