diff --git a/index.html b/index.html index 6a07166..fd8ec75 100644 --- a/index.html +++ b/index.html @@ -209,16 +209,12 @@ const totalExecuted = allData.reduce((sum, r) => sum + (r.executedSum || 0), 0); const totalEconomy = allData.reduce((sum, r) => sum + (r.economy || 0), 0); const avgPercent = totalBudget > 0 ? (totalExecuted / totalBudget) * 100 : 0; - const bkvCount = allData.filter(r => r.budgetType === 'БКВ').length; - const obCount = allData.filter(r => r.budgetType === 'ОБ').length; document.getElementById('stats').innerHTML = '
' + formatAmount(totalBudget) + '
Бюджет закупок, тг (всего)
' + '
' + formatAmount(totalExecuted) + '
Сумма поставки, тг
' + '
' + formatAmount(totalEconomy) + '
Экономия, тг
' + - '
' + formatAmount(avgPercent) + '%
Среднее исполнение
' + - '
' + bkvCount + '
БКВ
' + - '
' + obCount + '
ОБ
'; + '
' + formatAmount(avgPercent) + '%
Среднее исполнение
'; } function renderTable() {