From d712da1816fb0ea31a13995c656b86737914d483 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Mon, 1 Dec 2025 10:08:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=81=D1=82=D0=BE=D0=BB=D0=B1=D1=86=D1=8B=20?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=B0=20=D0=BE=D0=BF=D0=BB?= =?UTF-8?q?=D0=B0=D1=82=D1=8B=20=D0=B8=20=D1=81=D1=83=D0=BC=D0=BC=D1=8B=20?= =?UTF-8?q?=D0=BE=D0=BF=D0=BB=D0=B0=D1=82=D1=8B=20=D0=B2=20=D1=82=D0=B0?= =?UTF-8?q?=D0=B1=D0=BB=D0=B8=D1=86=D1=83=20=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Добавлено: - Столбец 'Статус оплаты' с цветовой индикацией: * Зеленый бейдж - Оплачен полностью * Желтый бейдж - Частично оплачен * Красный бейдж - Не оплачен - Столбец 'Оплачено' показывает: amount_paid / total_amount * Например: 500.00 / 1000.00 (оплачено 500 из 1000) Использованные поля: - payment_status (paid/partial/unpaid) - amount_paid (сумма внесенная клиентом) - total_amount (итоговая сумма заказа) --- .../inventory/templates/inventory/debug_page.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/myproject/inventory/templates/inventory/debug_page.html b/myproject/inventory/templates/inventory/debug_page.html index 615ef55..f50715e 100644 --- a/myproject/inventory/templates/inventory/debug_page.html +++ b/myproject/inventory/templates/inventory/debug_page.html @@ -158,6 +158,8 @@ Покупатель Товары Сумма + Статус оплаты + Оплачено Создан @@ -179,10 +181,20 @@ {{ order.customer.name|default:"-" }} {{ order.items.count }} шт {{ order.total_amount|floatformat:2 }} + + {% if order.payment_status == 'paid' %} + Оплачен + {% elif order.payment_status == 'partial' %} + Частично + {% else %} + Не оплачен + {% endif %} + + {{ order.amount_paid|floatformat:2 }} / {{ order.total_amount|floatformat:2 }} {{ order.created_at|date:"d.m.Y H:i" }} {% empty %} - Нет заказов + Нет заказов {% endfor %}