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);