GWM
This commit is contained in:
parent
2652377f24
commit
57cbd4f6c0
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user