Merge branch 'main' of bitbucket.org:jubilian/nhance_partner_be

This commit is contained in:
sanjeev.p 2026-01-07 13:47:26 +05:30
commit 54cb1e059c

View File

@ -159,11 +159,14 @@ class InvoiceController extends ResourceController
$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_by'] = $input['created_by'] ?? 0;
$this->InvoiceItemModel->insert($itemData);
//update pos_id to policy table
$this->PolicyModel->update($item['policy_id'], ['pos_id' => $input['pos_id'] ]);
}
}
}