Игнорировать колонку % из Excel, считать всегда из сумм
This commit is contained in:
parent
3a071920ed
commit
78bdde0d86
@ -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 = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user