From aeab6a1127c5a9e7a9aabf3e9579819f88cba8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=9D=D0=B0=D0=B4=D0=B5?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Wed, 10 Dec 2025 17:08:09 +0300 Subject: [PATCH] fix: display total_cost instead of estimated_cost in request list - Changed from estimated_cost (single field) to total_cost (calculated sum) - Now correctly shows sum of all items in the request --- backend/templates/procurement/request_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/templates/procurement/request_list.html b/backend/templates/procurement/request_list.html index 34ac0926..1799506b 100644 --- a/backend/templates/procurement/request_list.html +++ b/backend/templates/procurement/request_list.html @@ -309,7 +309,7 @@ const html = requests.map(req => { const urgIcon = urgencyIcons[req.urgency] || 'bi-dash-circle'; const date = new Date(req.created_at).toLocaleDateString('ru-RU'); - const cost = req.estimated_cost ? `${parseFloat(req.estimated_cost).toLocaleString('ru-RU')} ₽` : '—'; + const cost = req.total_cost ? `${parseFloat(req.total_cost).toLocaleString('ru-RU')} ₽` : '—'; const deptName = req.department_name || req.department?.name || '—'; return `