35 lines
778 B
PHP
35 lines
778 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use CodeIgniter\Model;
|
|
use App\Models\Concerns\SchoolYearAutoFillTrait;
|
|
|
|
class SchoolYearClosingItemModel extends Model
|
|
{
|
|
use SchoolYearAutoFillTrait;
|
|
|
|
protected $table = 'school_year_closing_items';
|
|
protected $primaryKey = 'id';
|
|
protected $returnType = 'array';
|
|
protected $useTimestamps = true;
|
|
|
|
protected $allowedFields = [
|
|
'closing_batch_id',
|
|
'family_id',
|
|
'source_balance',
|
|
'credit_amount',
|
|
'adjustment_amount',
|
|
'carry_forward_amount',
|
|
'target_invoice_id',
|
|
'target_adjustment_id',
|
|
'status',
|
|
'error_message',
|
|
'school_year',
|
|
];
|
|
protected $validationRules = [
|
|
'school_year' => 'required|string|max_length[9]',
|
|
];
|
|
|
|
}
|