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;