Проверка на статус карты при выдаче (добавлены Выдана и Утеряна)

This commit is contained in:
brusnitsyn
2025-12-19 00:11:08 +09:00
parent 84f4cbb273
commit d1df87b817
2 changed files with 4 additions and 0 deletions

View File

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