You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
1.3 KiB

{% extends "base.html" %}
{% load pytils_numeral %}
{% block title %}История расчётов{% endblock %}
{% block content %}
<h1>История оплат</h1>
<div class="btn yellow-btn docs-btn"><a href="{% url 'customer_order_license' %}">Купить лицензию</a></div>
<div class="btn yellow-btn docs-btn"><a href="{% url 'customer_license_list' %}">Все счета</a></div>
<table id="history" class="list">
<tr>
<th>Дата оплаты</th>
<th>По счёту</th>
<th>Сумма</th>
<th>Срок лицензии</th>
<th>Период действия лицензии</th>
<th>Статус лицензии</th>
<th>Закрывающие документы</th>
</tr>
{% for license in licenses %}
<tr>
<td>{{ license.paid_date|default:'-' }}</td>
<td>{% if license.pay_sum %}{{ license.id }}{% else %}-{% endif %}</td>
<td>{% if license.pay_sum %}{{ license.pay_sum }}{% else %}-{% endif %}</td>
<td>{{ license.get_term }}</td>
<td>{% if license.date_from %}{{ license.date_from }} - {{ license.date_to }}{% else %}-{% endif %}</td>
<td>{{ license.get_status_display }}<p>{{ license.get_paid_status|default:'' }}</p></td>
<td>Разные документы</td>
</tr>
{% endfor %}
</table>
{% endblock %}