fix test run issue
Tests / PHPUnit (push) Successful in 1m21s

This commit is contained in:
root
2026-07-18 23:18:49 -04:00
parent a30c1398a1
commit 2be16553df
15 changed files with 368 additions and 17 deletions
+5
View File
@@ -3,9 +3,12 @@
namespace App\Models;
use CodeIgniter\Model;
use App\Models\Concerns\SchoolYearAutoFillTrait;
class InvoiceLineModel extends Model
{
use SchoolYearAutoFillTrait;
protected $table = 'invoice_lines';
protected $primaryKey = 'id';
protected $returnType = 'array';
@@ -13,6 +16,7 @@ class InvoiceLineModel extends Model
protected $allowedFields = [
'invoice_id',
'school_year',
'line_type',
'source_type',
'source_id',
@@ -31,6 +35,7 @@ class InvoiceLineModel extends Model
protected $validationRules = [
'invoice_id' => 'required|integer',
'school_year' => 'required|string|max_length[9]',
'line_type' => 'required|max_length[50]',
'description' => 'required|max_length[255]',
'quantity' => 'required|decimal',