03-02-2025 19:42:44 +0700

This commit is contained in:
Duidev Software House
2025-02-03 15:28:27 +07:00
parent 6f7beddec6
commit 619f75ff5e
4 changed files with 254 additions and 107 deletions

View File

@@ -1067,10 +1067,15 @@ class DokterController extends Controller
$tabel = $tabel.'</table>';
}
if ($orderid != 0){
if ($getdata->subantibiotik !== null && $getdata->subantibiotik != ''){
$antibiotik = $getdata->subantibiotik;
} else {
$antibiotik = $getdata->antibiotik;
}
RekapAntibiotik::updateOrCreate(
[
'orderid' => $orderid,
'antibiotic' => $getdata->antibiotik.' '.$getdata->subantibiotik,
'antibiotic' => $antibiotik,
],
[
'resistance' => $getdata->diskcontent,
@@ -1130,10 +1135,15 @@ class DokterController extends Controller
$tabel = $tabel.'</table>';
}
if ($orderid != 0){
if ($getdata->subantibiotik !== null && $getdata->subantibiotik != ''){
$antibiotik = $getdata->subantibiotik;
} else {
$antibiotik = $getdata->antibiotik;
}
RekapAntibiotik::updateOrCreate(
[
'orderid' => $orderid,
'antibiotic' => $getdata->antibiotik.' '.$getdata->subantibiotik,
'antibiotic' => $antibiotik,
],
[
'resistance' => $getdata->diskcontent,