]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Рефактор
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 11 Jun 2025 09:52:00 +0000 (12:52 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 11 Jun 2025 09:52:00 +0000 (12:52 +0300)
erp24/services/AutoPlannogrammaService.php

index 80425e0ffe25f2166fc68d44a31905b056553ab1..d0ef4f9d9943759b10a785ab62ddc195fe43f9fb 100644 (file)
@@ -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');