fix invoice and enrollment fees
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Failing after 1m19s

This commit is contained in:
root
2026-08-27 18:34:36 -04:00
parent 0ae9993d82
commit 38644b32ae
29 changed files with 1836 additions and 1555 deletions
-46
View File
@@ -1,46 +0,0 @@
<?php
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';
protected $useTimestamps = false;
protected $allowedFields = [
'invoice_id',
'school_year',
'line_type',
'source_type',
'source_id',
'active_source_key',
'description',
'quantity',
'unit_amount_cents',
'line_amount_cents',
'discount_eligible',
'calculation_version',
'metadata_json',
'created_at',
'updated_at',
'voided_at',
];
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',
'unit_amount_cents' => 'required|integer',
'line_amount_cents' => 'required|integer',
'discount_eligible' => 'required|in_list[0,1]',
];
}
+1
View File
@@ -23,6 +23,7 @@ class InvoiceStudentListModel extends Model
'student_lastname',
'school_id',
'enrolled',
'tuition_fee',
'created_at',
'updated_at',
'school_year',