From d9c725bd90c7ffead0e9557672442d3db2cf0f7d Mon Sep 17 00:00:00 2001 From: Rustem Date: Tue, 25 Mar 2025 11:01:35 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B0=D0=BF=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Sync1cApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Sync1cApiController.php b/app/Http/Controllers/Sync1cApiController.php index 9cf8718..d5b8870 100644 --- a/app/Http/Controllers/Sync1cApiController.php +++ b/app/Http/Controllers/Sync1cApiController.php @@ -238,11 +238,11 @@ class Sync1cApiController extends Controller foreach ($request->all() as $value) { UniModel::model('pipi_auto_calendar', $segment->connector)->updateOrCreate( [ - 'auto_id' => UniModel::model('pipi_auto')->where('guid', $value['ИмуществоGUID'])->first()?->id, + 'auto_id' => UniModel::model('pipi_auto')->where('name', $value['Имущество'])->first()?->id, 'date' => $this->formatDate($value['Дата']), ], [ - 'auto_id' => UniModel::model('pipi_auto')->where('guid', $value['ИмуществоGUID'])->first()?->id, + 'auto_id' => UniModel::model('pipi_auto')->where('name', $value['Имущество'])->first()?->id, 'date' => $this->formatDate($value['Дата']), 'status' => AutoStatusEnums::from($value['Статус'])->name ]