This commit is contained in:
@@ -3,9 +3,12 @@
|
||||
namespace App\Models;
|
||||
|
||||
use CodeIgniter\Model;
|
||||
use App\Models\Concerns\SchoolYearAutoFillTrait;
|
||||
|
||||
class AdditionalChargeModel extends Model
|
||||
{
|
||||
use SchoolYearAutoFillTrait;
|
||||
|
||||
protected $table = 'additional_charges';
|
||||
protected $primaryKey = 'id';
|
||||
protected $returnType = 'array';
|
||||
@@ -28,7 +31,7 @@ class AdditionalChargeModel extends Model
|
||||
protected $validationRules = [
|
||||
'parent_id' => 'permit_empty|integer',
|
||||
'invoice_id' => 'permit_empty|integer',
|
||||
'school_year' => 'required|string|max_length[20]',
|
||||
'school_year' => 'required|string|max_length[9]',
|
||||
'semester' => 'required|string|max_length[20]',
|
||||
'charge_type' => 'required|in_list[add,deduct]',
|
||||
'title' => 'required|string|min_length[2]|max_length[255]',
|
||||
|
||||
Reference in New Issue
Block a user