From 049ef906d74091f0d2eef3640056ac295bddf317 Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Mon, 13 Jul 2026 12:16:00 +0900 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B8=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D1=87=D0=BD=D0=B8=D0=BA=D0=B0=20=D0=BF=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B5=D0=BD=D1=82=D0=B0=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=BE?= =?UTF-8?q?=D1=85=D1=80=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D0=B8=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=B1=D0=BB=D1=8E=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/DutyReportService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Services/DutyReportService.php b/app/Services/DutyReportService.php index 1138f6b..bf24b29 100644 --- a/app/Services/DutyReportService.php +++ b/app/Services/DutyReportService.php @@ -1023,12 +1023,13 @@ class DutyReportService public function saveObservables(array $observables, ReportDuty $reportDuty) { foreach ($observables as $observable) { + // TODO: source_type возможно нужно прокидывать с фронта ObservableMedicalHistory::updateOrCreate([ 'original_id' => $observable['original_id'] ?? $observable['id'], - 'source_type' => $observable['source_type'], + 'source_type' => $observable['source_type'] ?? 'mis', 'observable_in' => $observable['observable_in'] ?? $reportDuty->period_start, ], [ - 'source_type' => $observable['source_type'], + 'source_type' => $observable['source_type'] ?? 'mis', 'original_id' => $observable['original_id'], 'observable_in' => $observable['observable_in'] ?? $reportDuty->period_start, 'observable_out' => $observable['observable_out'] ?? null,