From d1df87b817826a1a68e8ae657fe8352b872a710e Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Fri, 19 Dec 2025 00:11:08 +0900 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D1=8B=20=D0=BF=D1=80=D0=B8=20=D0=B2?= =?UTF-8?q?=D1=8B=D0=B4=D0=B0=D1=87=D0=B5=20(=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=92=D1=8B=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B8=20=D0=A3=D1=82=D0=B5=D1=80=D1=8F=D0=BD=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Mis/SttMedicalHistory.php | 2 ++ app/Models/SI/SttMedicalHistory.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/Models/Mis/SttMedicalHistory.php b/app/Models/Mis/SttMedicalHistory.php index 4208aaf..f91dd30 100644 --- a/app/Models/Mis/SttMedicalHistory.php +++ b/app/Models/Mis/SttMedicalHistory.php @@ -42,6 +42,8 @@ class SttMedicalHistory extends Model $hasNotBadStatus = $this->archiveInfo() ->whereNotNull('status_id') ->whereNot('status_id', 1) + ->whereNot('status_id', 3) + ->whereNot('status_id', 4) ->exists(); return ($hasOpenIssue !== true && $hasNotBadStatus === true); diff --git a/app/Models/SI/SttMedicalHistory.php b/app/Models/SI/SttMedicalHistory.php index 224c348..43c2248 100644 --- a/app/Models/SI/SttMedicalHistory.php +++ b/app/Models/SI/SttMedicalHistory.php @@ -55,6 +55,8 @@ class SttMedicalHistory extends Model $hasNotBadStatus = $this->archiveInfo() ->whereNotNull('status_id') ->whereNot('status_id', 1) + ->whereNot('status_id', 3) + ->whereNot('status_id', 4) ->exists(); return ($hasOpenIssue !== true && $hasNotBadStatus === true);