Audit history : GWM

This commit is contained in:
Gowtham M 2026-01-20 18:30:46 +05:30
parent 4476ae8371
commit 880ca630e4

View File

@ -13,7 +13,7 @@ use App\Models\StaffModel;
use App\Models\PartnerBrokerModel; use App\Models\PartnerBrokerModel;
use App\Models\PaymentModeModel; use App\Models\PaymentModeModel;
use App\Models\PartnerPosModel; use App\Models\PartnerPosModel;
use App\Models\PolicyModel;
class MasterController extends ResourceController class MasterController extends ResourceController
@ -30,6 +30,7 @@ class MasterController extends ResourceController
protected $PartnerBrokerModel; protected $PartnerBrokerModel;
protected $PaymentModeModel; protected $PaymentModeModel;
protected $PartnerPosModel; protected $PartnerPosModel;
protected $PolicyModel;
public function __construct() public function __construct()
@ -45,6 +46,7 @@ class MasterController extends ResourceController
$this->PartnerBrokerModel = new PartnerBrokerModel(); $this->PartnerBrokerModel = new PartnerBrokerModel();
$this->PaymentModeModel = new PaymentModeModel(); $this->PaymentModeModel = new PaymentModeModel();
$this->PartnerPosModel = new PartnerPosModel(); $this->PartnerPosModel = new PartnerPosModel();
$this->PolicyModel = new PolicyModel();
} }
@ -594,6 +596,10 @@ class MasterController extends ResourceController
$tableName = $this->request->getGet('table_name'); $tableName = $this->request->getGet('table_name');
$pk = $this->request->getGet('pk'); $pk = $this->request->getGet('pk');
$policy = $this->PolicyModel->where('enquiry_id',$pk)->first();
$pk = $policy['id'];
if (!$tableName || !$pk) { if (!$tableName || !$pk) {
return $this->response->setJSON([ return $this->response->setJSON([
'status' => 'failed', 'status' => 'failed',