From 2faaae51e94156a77d9b64a23795d10d450c41f7 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Fri, 12 Sep 2025 16:04:36 +0300 Subject: [PATCH] =?utf8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5?= =?utf8?q?=20=D0=B0=D0=B2=D1=82=D0=BE=D0=BF=D0=BB=D0=B0=D0=BD=D0=B0=20?= =?utf8?q?=D0=BF=D1=80=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D1=80=D0=B0=D1=81?= =?utf8?q?=D1=87=D0=B5=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/commands/CronController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index 5a9678f7..b8a506e4 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -1668,7 +1668,7 @@ class CronController extends Controller $planDate = $date->format('Y-m-01'); $month = (int)$date->format('m'); $year = (int)$date->format('Y'); - + Autoplannogramma::deleteAll(['month' => $month , 'year' => $year]); $service = new AutoPlannogrammaService(); $stores = CityStore::find()->where(['visible' => CityStore::IS_VISIBLE])->all(); $categories = Products1cNomenclature::find()->select('category')->distinct()->andWhere(['not in', 'category', ['', 'букет', 'сборка', 'сервис']])->column(); @@ -1860,7 +1860,7 @@ class CronController extends Controller LogService::apiErrorLog(json_encode(["error_id" => 8, "error" => $scriptLauncherLog->getErrors()], JSON_UNESCAPED_UNICODE)); } - + Autoplannogramma::deleteAll(['store_id' => (int)$task['storeId'], 'month' => (int)$task['month'], 'year' => (int)$task['year']]); $service = new AutoPlannogrammaService(); $year = (int)$task['year']; $month = (int)$task['month']; -- 2.39.5