From fb8e97472f5bd27e162c2f16a2fd693e2044a4b0 Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Thu, 12 Dec 2024 02:21:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B3=D0=BE=D0=BD=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=D0=B4=20=D0=A0=D0=9F=D0=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Report/static/js/check.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/Report/static/js/check.js b/App/Report/static/js/check.js index 230c5ac..1358ccd 100644 --- a/App/Report/static/js/check.js +++ b/App/Report/static/js/check.js @@ -1,7 +1,7 @@ function check_month(now_month, now_year) { let selected_month = document.getElementById('month').value; let selected_year = document.getElementById('year').value; - if (selected_month > now_month && selected_year == now_year) { + if (selected_month > now_month && selected_year == now_year || selected_year > now_year) { alert('Невозможно сформировать отчет за будущий период!'); return false; }