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 %}