From 3eb5b66b67d36607911d321624faab8286403ace Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Tue, 9 Sep 2025 09:21:56 +0300 Subject: [PATCH] =?utf8?q?=D0=A3=D0=B1=D0=B8=D1=80=D0=B0=D0=B5=D0=BC=20?= =?utf8?q?=D1=80=D0=B0=D1=81=D1=87=D0=B5=D1=82=20=D1=81=D0=B5=D0=B1=D0=B5?= =?utf8?q?=D1=81=D1=82=D0=BE=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/DataController.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index 9a29c779..1798d9e0 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -1237,13 +1237,13 @@ class DataController extends BaseController LogService::apiErrorLog(json_encode(["error_id" => 8.2, "error" => $newBouquetCompProd->getErrors()], JSON_UNESCAPED_UNICODE)); } } - $costModels = []; - foreach (BouquetComposition::getRegions() as $region_id) { - $costModels[$region_id] = $newBouquetComp->getCostModel($region_id, array_keys($arr["components"]), true); - } - if(empty($costModels)) { - LogService::apiErrorLog(json_encode(["error_id" => 8.3, "error" => "Стоимость и цена не подсчитаны"], JSON_UNESCAPED_UNICODE)); - } +// $costModels = []; +// foreach (BouquetComposition::getRegions() as $region_id) { +// $costModels[$region_id] = $newBouquetComp->getCostModel($region_id, array_keys($arr["components"]), true); +// } +// if(empty($costModels)) { +// LogService::apiErrorLog(json_encode(["error_id" => 8.3, "error" => "Стоимость и цена не подсчитаны"], JSON_UNESCAPED_UNICODE)); +// } $bouquetTypeHistory = new BouquetCompositionMatrixTypeHistory(); $bouquetTypeHistory->bouquet_id = $newBouquetComp->id; $bouquetTypeHistory->matrix_type_id = 1; -- 2.39.5