FIX_partnerQuotationUpdateData_insurance_plan_type

This commit is contained in:
sanjeev.p 2026-01-20 11:39:41 +05:30
parent 05bcd19f13
commit 3c14784987

View File

@ -303,6 +303,26 @@ class PolicyController extends ResourceController
}
}
$partnerQuotationUpdateData = [];
if (!empty($data['insurance_plan_type'])) {
$partnerQuotationUpdateData['insurance_plan_type'] = $data['insurance_plan_type'];
}
if (!empty($partnerQuotationUpdateData)) {
$pq = $this->QuotationModel
->select('id')
->where('enquiry_id', $id)
->where('status',"Accepted")
->first();
if (!empty($pq['id'])) {
$db = \Config\Database::connect();
$db->table('partner_quotation')
->where('id', $pq['id'])
->update($partnerQuotationUpdateData);
}
}
$uploadPath = WRITEPATH . 'uploads/policy/';