MODELS_ADDED_IN_CLAIM_SRI

This commit is contained in:
Srinivas-Saravanan 2025-01-28 10:17:12 +05:30
parent a7c4fb580b
commit 5a0c2698e2
3 changed files with 12 additions and 2 deletions

View File

@ -7,6 +7,10 @@ use CodeIgniter\HTTP\ResponseInterface;
use App\Models\TicketMasterModel;
use App\Models\TicketClaimStatusModel;
use App\Models\ClientModel;
use App\Models\TicketHistoryModel;
use App\Models\TicketMailTemplateModel;
use App\Models\TicketMessageModel;
use App\Models\TicketNoteModel;
use Psr\Log\LoggerInterface;
use Kint\Kint;
@ -23,6 +27,10 @@ class TicketController extends BaseController
protected $ticketMasterModel;
protected $claimStatus;
protected $clientModel;
protected $ticketHistoryModel;
protected $ticketMailTemplateModel;
protected $ticketMesageModel;
protected $ticketNoteModel;
public function __construct()
{
@ -49,6 +57,8 @@ class TicketController extends BaseController
$this->ticketMasterModel = new TicketMasterModel();
$this->claimStatus = new TicketClaimStatusModel();
$this->clientModel = new ClientModel();
$this->ticketHistoryModel = new TicketHistoryModel();
}
public function ticketList()

View File

@ -17,7 +17,7 @@ class TicketMasterModel extends Model
'relationship', 'emp_mobile', 'emp_mail', 'mode_of_intimation', 'claim_type', 'hospital_name',
'doa', 'dod', 'claim_amount', 'pod_no', 'created_by', 'updated_by', 'created_at', 'updated_at',
'date_of_join', 'date_of_incep', 'dob', 'date_of_accident', 'date_of_death', 'date_of_intimat',
'si_amt','claim_number'
'si_amt','claim_number,is_active'
];
// Callbacks

View File

@ -12,7 +12,7 @@ class TicketNoteModel extends Model
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $protectFields = true;
protected $allowedFields = [];
protected $allowedFields = ['id,created_by','updated_by','is_active'];
// Callbacks
protected $allowCallbacks = true;