FIX_PaternaerQuota
This commit is contained in:
parent
febc89aef3
commit
98765d4d05
@ -324,6 +324,34 @@ class PolicyController extends ResourceController
|
||||
}
|
||||
}
|
||||
|
||||
$partnerQuotationUpdateData = [];
|
||||
if (!empty($data['insurance_plan_type_id'])) {
|
||||
|
||||
$partnerQuotation = $this->PolicyModel
|
||||
->select('quotation_id')
|
||||
->where('id', $id)
|
||||
->first();
|
||||
|
||||
$partnerQuotationUpdateData = [
|
||||
'insurance_plan_type_id' => $data['insurance_plan_type_id'],
|
||||
];
|
||||
|
||||
if (!empty($partnerQuotationUpdateData)) {
|
||||
|
||||
$db = \Config\Database::connect();
|
||||
$db->table('partner_quotation')
|
||||
->where('id', $partnerQuotation['quotation_id'])
|
||||
->update($partnerQuotationUpdateData);
|
||||
}
|
||||
|
||||
// $updatedQuotation = $db->table('partner_quotation')
|
||||
// ->where('id', $partnerQuotation['quotation_id'])
|
||||
// ->get()
|
||||
// ->getRowArray();
|
||||
|
||||
}
|
||||
|
||||
|
||||
$uploadPath = WRITEPATH . 'uploads/policy/';
|
||||
|
||||
// PDF Update
|
||||
|
||||
Loading…
Reference in New Issue
Block a user