From: Vladimir Fomichev Date: Wed, 18 Jun 2025 14:28:38 +0000 (+0300) Subject: Приватный в публичный X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=9a2ed5a0b692928640798bb339948443e996f5f1;p=erp24_rep%2Fyii-erp24%2F.git Приватный в публичный --- diff --git a/erp24/services/StorePlanService.php b/erp24/services/StorePlanService.php index c40da43b..bf9a12c3 100755 --- a/erp24/services/StorePlanService.php +++ b/erp24/services/StorePlanService.php @@ -276,7 +276,7 @@ class StorePlanService * * @return array Ассоциативный массив периодов с ключами вида "YYYY-MM". */ - private static function getPeriods($baseDate, $count, $withWeeks = false, $withWeights = false) + public static function getPeriods($baseDate, $count, $withWeeks = false, $withWeights = false) { $date = new \DateTime(date('Y-m-d', $baseDate)); $dateFrom = strtotime($date->modify('-2 month')->format('Y-m'));