GWM
This commit is contained in:
parent
2652377f24
commit
57cbd4f6c0
@ -415,7 +415,7 @@ class QuotationController extends ResourceController
|
|||||||
/* ------------------------------------------------------
|
/* ------------------------------------------------------
|
||||||
* CASE 3: Create New Quotation
|
* CASE 3: Create New Quotation
|
||||||
* ------------------------------------------------------ */
|
* ------------------------------------------------------ */
|
||||||
$quotationData['created_by'] = $data['created_by'];
|
$quotationData['created_by'] = $data['created_by'] ?? 0;
|
||||||
$quotationData['status'] = 'Accepted';
|
$quotationData['status'] = 'Accepted';
|
||||||
|
|
||||||
$newQuotationId = $this->QuotationModel->insert($quotationData, true);
|
$newQuotationId = $this->QuotationModel->insert($quotationData, true);
|
||||||
@ -458,7 +458,7 @@ class QuotationController extends ResourceController
|
|||||||
'manager_id' => $quot['manager_id'],
|
'manager_id' => $quot['manager_id'],
|
||||||
'agent_id' => $quot['agent_id'],
|
'agent_id' => $quot['agent_id'],
|
||||||
'policy_pdf_file_name' => $pdfFileName,
|
'policy_pdf_file_name' => $pdfFileName,
|
||||||
'created_by' => $data['created_by'],
|
'created_by' => $data['created_by'] ?? 0,
|
||||||
];
|
];
|
||||||
|
|
||||||
$newPolicyId = $this->PolicyModel->insert($policyInsert);
|
$newPolicyId = $this->PolicyModel->insert($policyInsert);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user