Проверка на статус карты при выдаче (добавлены Выдана и Утеряна)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user