From 16ad79b3ade113da9d0b440a62f8a090ebdbc3ed Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 11 Oct 2024 16:00:53 +0300 Subject: [PATCH] =?utf8?q?[ERP-187]=20=D1=81=D1=82=D0=B0=D1=80=D1=8B=D0=B9?= =?utf8?q?=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D1=80=D0=B0=D1=81=D1=87?= =?utf8?q?=D1=91=D1=82=D0=B0=20=D1=80=D0=B0=D0=B1=D0=BE=D1=87=D0=B8=D1=85?= =?utf8?q?=20=D0=B4=D0=BD=D0=B5=D0=B9=20=D0=B4=D0=BB=D1=8F=20=D1=81=D1=82?= =?utf8?q?=D0=B0=D1=80=D1=8B=D1=85=20=D0=B4=D0=B0=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/helpers/HtmlHelper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erp24/helpers/HtmlHelper.php b/erp24/helpers/HtmlHelper.php index b5f8b591..ab1fed24 100755 --- a/erp24/helpers/HtmlHelper.php +++ b/erp24/helpers/HtmlHelper.php @@ -165,6 +165,9 @@ class HtmlHelper public static function getWorkDays($m, $y): int { + if (($y < 2024) || (($y == 2024) && $m < 10)) { + return self::getWorkDaysOld($m, $y); + } if ($m < 10) { $m = '0' . $m; } -- 2.39.5