Игнорировать колонку % из Excel, считать всегда из сумм

This commit is contained in:
Rollan_Tuleuov 2026-08-18 10:43:06 +00:00
parent 3a071920ed
commit 78bdde0d86
2 changed files with 213 additions and 216 deletions

422
data.json

File diff suppressed because it is too large Load Diff

View File

@ -58,12 +58,9 @@ function parseExcelData() {
} }
let execPercent = 0; let execPercent = 0;
if (execPercentIdx !== -1 && row[execPercentIdx]) { // Всегда считаем процент из сумм, игнорируя колонку % из Excel
execPercent = parseFloat(String(row[execPercentIdx]).replace('%', '').replace(/\s/g, '')) || 0; if (budgetSum > 0) {
} else if (budgetSum > 0 && executedSum > 0) {
execPercent = (executedSum / budgetSum) * 100; execPercent = (executedSum / budgetSum) * 100;
} else {
execPercent = 0;
} }
const item = { const item = {