diff --git a/app/Controllers/EnquiryController.php b/app/Controllers/EnquiryController.php index 4e9209c..82cf7a2 100644 --- a/app/Controllers/EnquiryController.php +++ b/app/Controllers/EnquiryController.php @@ -133,7 +133,7 @@ class EnquiryController extends ResourceController if($value['status'] == 'Accepted') { $quotationId = $value['id']; } } - $policies = $this->PolicyModel->select('partner_policy.*, pe.reg_no, I.name as insurer_name, pq.insured_declared_value, ipti.insurance_plan_type, PB.name as broker_name') + $policies = $this->PolicyModel->select('partner_policy.*, pe.reg_no, I.name as insurer_name, pq.insured_declared_value, ipti.insurance_plan_type, pe.broker_id , PB.name as broker_name') ->join('partner_enquiry pe', 'pe.id = partner_policy.enquiry_id', 'left') ->join('partner_quotation pq', 'pq.id = partner_policy.quotation_id', 'left') ->join('insurers I', 'I.id = pq.insurer_id', 'left')