Энергия НК (Пофиксил отчеты)

This commit is contained in:
zakhy 2025-02-26 10:54:58 +07:00
parent 255296abdf
commit 520bdd8f0e
2 changed files with 7 additions and 2 deletions

View File

@ -164,10 +164,13 @@
var DataStop = $("#id_datestop").val();
const checkbox = document.getElementById('AllSectors');
let AllSectors = false
// Проверяем состояние чекбокса
if (checkbox) {
// Проверяем состояние чекбокса
if (checkbox.checked) {
AllSectors = true
}
}
console.log(AllSectors)
if (DataStart.trim() == "") {
$("#id_datestart").css('border', "3px solid #80bdff").focus();

View File

@ -173,10 +173,12 @@
function reportshow() {
const checkbox = document.getElementById('AllSectors');
let AllSectors = false
// Проверяем состояние чекбокса
if (checkbox) {
// Проверяем состояние чекбокса
if (checkbox.checked) {
AllSectors = true
}
}
var DataStart = $("#id_datestart").val();
var DataStop = $("#id_datestop").val();
var variant = $("#id_variant").val();