Fix_Completed
This commit is contained in:
parent
98765d4d05
commit
598ecfaedf
@ -303,26 +303,6 @@ class PolicyController extends ResourceController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$partnerQuotationUpdateData = [];
|
|
||||||
|
|
||||||
if (!empty($data['insurance_plan_type_id'])) {
|
|
||||||
$partnerQuotationUpdateData['insurance_plan_type_id'] = $data['insurance_plan_type_id'];
|
|
||||||
}
|
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$partnerQuotationUpdateData = [];
|
$partnerQuotationUpdateData = [];
|
||||||
if (!empty($data['insurance_plan_type_id'])) {
|
if (!empty($data['insurance_plan_type_id'])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user