From a8dc3897c555f9797fd893551b9e089725d96509 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Mon, 1 Dec 2025 10:07:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=81=D1=83=D0=BC=D0=BC=D1=8B=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7=D0=B0=20=D0=B2=20=D1=82=D0=B0?= =?UTF-8?q?=D0=B1=D0=BB=D0=B8=D1=86=D0=B5=20Order?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Проблема: - В шаблоне использовалось несуществующее поле total_price - Фактическое поле в модели Order называется total_amount Исправление: - Заменено order.total_price на order.total_amount - Теперь итоговая сумма заказа отображается корректно --- myproject/inventory/templates/inventory/debug_page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/myproject/inventory/templates/inventory/debug_page.html b/myproject/inventory/templates/inventory/debug_page.html index ef9d359..615ef55 100644 --- a/myproject/inventory/templates/inventory/debug_page.html +++ b/myproject/inventory/templates/inventory/debug_page.html @@ -178,7 +178,7 @@ {{ order.customer.name|default:"-" }} {{ order.items.count }} шт - {{ order.total_price|floatformat:2 }} + {{ order.total_amount|floatformat:2 }} {{ order.created_at|date:"d.m.Y H:i" }} {% empty %}