Merge branch 'main' of bitbucket.org:jubilian/nhance_partner_be
This commit is contained in:
commit
54cb1e059c
@ -159,11 +159,14 @@ class InvoiceController extends ResourceController
|
|||||||
|
|
||||||
$this->InvoiceItemModel->update($item['id'], $itemData);
|
$this->InvoiceItemModel->update($item['id'], $itemData);
|
||||||
|
|
||||||
}else { // INSERT (if id missing)
|
}else{ // INSERT (if id missing)
|
||||||
|
|
||||||
$itemData['created_at'] = date('Y-m-d H:i:s');
|
$itemData['created_at'] = date('Y-m-d H:i:s');
|
||||||
$itemData['created_by'] = $input['created_by'] ?? 0;
|
$itemData['created_by'] = $input['created_by'] ?? 0;
|
||||||
$this->InvoiceItemModel->insert($itemData);
|
$this->InvoiceItemModel->insert($itemData);
|
||||||
|
|
||||||
|
//update pos_id to policy table
|
||||||
|
$this->PolicyModel->update($item['policy_id'], ['pos_id' => $input['pos_id'] ]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user