Files
alrahma_sunday_school/app/Models/ReimbursementModel.php
T
root 716cc8b8d3
Tests / PHPUnit (push) Failing after 1m20s
fix school year for all tables
2026-07-18 14:45:38 -04:00

35 lines
700 B
PHP

<?php
namespace App\Models;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
class ReimbursementModel extends Model
{
use SchoolYearAutoFillTrait;
protected $table = 'reimbursements';
protected $primaryKey = 'id';
protected $allowedFields = [
'amount',
'reimbursed_to',
'approved_by',
'receipt_path',
'description',
'status',
'expense_id',
'added_by',
'school_year',
'semester',
'check_number',
'reimbursement_method',
'batch_number'
];
protected $validationRules = [
'school_year' => 'required|string|max_length[9]',
];
}