This commit is contained in:
2024-11-22 20:35:34 +03:00
parent cba13f4834
commit e3329c8634
3 changed files with 5 additions and 8 deletions

View File

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