diff --git a/app/Controllers/QuotationController.php b/app/Controllers/QuotationController.php index 9987edb..095b590 100644 --- a/app/Controllers/QuotationController.php +++ b/app/Controllers/QuotationController.php @@ -404,6 +404,14 @@ class QuotationController extends ResourceController $this->QuotationModel->update($quotationId, $quotationData); + /* -------------------------------------------- + * Update Enquiry (Quotation Accepted) + * -------------------------------------------- */ + $this->EnquiryModel->update($data['enquiry_id'], [ + 'broker_id' => $data['broker_id'] ?? 0, + 'vehicle_type_id' => $data['vehicle_type_id'] ?? 0, + ]); + }