{% extends "base.html" %} {% block title %}{{ customer.full_name }}{% endblock %} {% block content %}
| Имя: |
{{ customer.name|default:"—" }}
|
|
| Телефон: |
{{ customer.phone|default:"—" }}
|
|
| Email: |
{{ customer.email|default:"—" }}
|
|
| Заметки: |
{{ customer.notes|default:"—" }}
|
|
| Все успешные заказы: | {{ total_orders_sum|floatformat:2 }} руб. | |
| За последний год: | {{ last_year_orders_sum|floatformat:2 }} руб. | |
| Общий долг: | {{ total_debt|floatformat:2 }} руб. (Заказов: {{ active_orders_count }}) | |
| Дата создания: | {{ customer.created_at|date:"d.m.Y H:i" }} | |
| Последнее изменение: | {{ customer.updated_at|date:"d.m.Y H:i" }} | |
Нет дополнительных каналов связи. Добавьте Instagram, Telegram и другие контакты.
{% endif %}У клиента пока нет заказов.
{% endif %}| Дата | Тип | Сумма | Описание | Заказ |
|---|---|---|---|---|
| {{ transaction.created_at|date:"d.m.y H:i" }} | {% if transaction.transaction_type == 'deposit' %} Пополн. {% elif transaction.transaction_type == 'spend' %} Списан. {% else %} Корр. {% endif %} | {% if transaction.transaction_type == 'deposit' or transaction.transaction_type == 'adjustment' and transaction.amount > 0 %} +{{ transaction.amount|floatformat:2 }} {% else %} -{{ transaction.amount|floatformat:2 }} {% endif %} | {{ transaction.description|default:"-"|truncatewords:5 }} | {% if transaction.order %} #{{ transaction.order.order_number }} {% else %} - {% endif %} |
История транзакций пуста.
{% endif %}Клиент имеет отменённые заказы с внесённой оплатой. Общая сумма к возврату: {{ refund_amount|floatformat:2 }} руб.