FIX_partnerQuotationUpdateData_insurance_plan_type
This commit is contained in:
parent
05bcd19f13
commit
3c14784987
@ -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/';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user