feat(ibl-registration): tambah inform_consent di response order/load
Pakai get_inform_consent_by_order() yang sudah ada, null jika template tidak ditemukan (title kosong). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3566,6 +3566,9 @@ GROUP BY T_SampleStationID ";
|
||||
|
||||
$rst->data->company->mou = [$rst->data->mou];
|
||||
unset($rst->data->mou);
|
||||
|
||||
$ic = $this->get_inform_consent_by_order(intval($prm['id']));
|
||||
$rst->data->inform_consent = (!empty($ic['title'])) ? $ic : null;
|
||||
}
|
||||
else {
|
||||
$this->sys_error("Tidak ada order");
|
||||
|
||||
Reference in New Issue
Block a user