This commit is contained in:
Gowtham M 2025-11-21 18:33:01 +05:30
parent 2652377f24
commit 57cbd4f6c0

View File

@ -415,7 +415,7 @@ class QuotationController extends ResourceController
/* ------------------------------------------------------
* CASE 3: Create New Quotation
* ------------------------------------------------------ */
$quotationData['created_by'] = $data['created_by'];
$quotationData['created_by'] = $data['created_by'] ?? 0;
$quotationData['status'] = 'Accepted';
$newQuotationId = $this->QuotationModel->insert($quotationData, true);
@ -458,7 +458,7 @@ class QuotationController extends ResourceController
'manager_id' => $quot['manager_id'],
'agent_id' => $quot['agent_id'],
'policy_pdf_file_name' => $pdfFileName,
'created_by' => $data['created_by'],
'created_by' => $data['created_by'] ?? 0,
];
$newPolicyId = $this->PolicyModel->insert($policyInsert);