Игнорировать колонку % из Excel, считать всегда из сумм
This commit is contained in:
parent
3a071920ed
commit
78bdde0d86
@ -58,12 +58,9 @@ function parseExcelData() {
|
||||
}
|
||||
|
||||
let execPercent = 0;
|
||||
if (execPercentIdx !== -1 && row[execPercentIdx]) {
|
||||
execPercent = parseFloat(String(row[execPercentIdx]).replace('%', '').replace(/\s/g, '')) || 0;
|
||||
} else if (budgetSum > 0 && executedSum > 0) {
|
||||
// Всегда считаем процент из сумм, игнорируя колонку % из Excel
|
||||
if (budgetSum > 0) {
|
||||
execPercent = (executedSum / budgetSum) * 100;
|
||||
} else {
|
||||
execPercent = 0;
|
||||
}
|
||||
|
||||
const item = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user