From: Vladimir Fomichev Date: Wed, 11 Jun 2025 09:52:00 +0000 (+0300) Subject: Рефактор X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=7c258a6ca478d3db5ddeb788dfb6141941bb99c6;p=erp24_rep%2Fyii-erp24%2F.git Рефактор --- diff --git a/erp24/services/AutoPlannogrammaService.php b/erp24/services/AutoPlannogrammaService.php index 80425e0f..d0ef4f9d 100644 --- a/erp24/services/AutoPlannogrammaService.php +++ b/erp24/services/AutoPlannogrammaService.php @@ -2126,7 +2126,7 @@ class AutoPlannogrammaService $price = 0; $dailyPrices = []; foreach ($pricesByProduct[$productId] ?? [] as $priceRecordForProduct) { - if ($productId == self::SPECIAL_PRODUCT) { + if (isset(self::HELIUM_GUID) && $productId == self::HELIUM_GUID) { $saleDay = (new \DateTime($componentDataRecord['sale_date']))->format('Y-m-d'); $fromDay = (new \DateTime($priceRecordForProduct->date_from))->modify('-1 day')->format('Y-m-d'); $toDay = (new \DateTime($priceRecordForProduct->date_to ))->modify('+1 day')->format('Y-m-d');