Подгонка под РПЗ

This commit is contained in:
2024-12-12 02:21:37 +03:00
parent c9d18b62da
commit fb8e97472f

View File

@@ -1,7 +1,7 @@
function check_month(now_month, now_year) { function check_month(now_month, now_year) {
let selected_month = document.getElementById('month').value; let selected_month = document.getElementById('month').value;
let selected_year = document.getElementById('year').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('Невозможно сформировать отчет за будущий период!'); alert('Невозможно сформировать отчет за будущий период!');
return false; return false;
} }