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.
 
 
 
 

40 lines
3.1 KiB

{% extends "docs/_base/base_list.html" %}
{% block table_header %}
<th><a href="?{{ ordering.order_var }}=doc_date&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_date' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Дата</a>&nbsp;
{% if ordering.order_field == 'doc_date' %}{% if ordering.order_type == 'asc' %}<span title="01-31">&uarr;</span>{% else %}<span title="31-01">&darr;</span>{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=doc_num&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_num' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Номер</a>&nbsp;
{% if ordering.order_field == 'doc_num' %}{% if ordering.order_type == 'asc' %}<span title="1-9">&uarr;</span>{% else %}<span title="9-1">&darr;</span>{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=invoice__doc_num&{{ ordering.order_type_var }}={% if ordering.order_field == 'invoice__doc_num' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">По счёту</a>&nbsp;
{% if ordering.order_field == 'invoice__doc_num' %}{% if ordering.order_type == 'asc' %}<span title="1-9">&uarr;</span>{% else %}<span title="9-1">&darr;</span>{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=client__name&{{ ordering.order_type_var }}={% if ordering.order_field == 'client__name' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Контрагент</a>&nbsp;
{% if ordering.order_field == 'client__name' %}{% if ordering.order_type == 'asc' %}<span title="А-Я">&uarr;</span>{% else %}<span title="Я-А">&darr;</span>{% endif %}{% endif %}</th>
<th><a href="?{{ ordering.order_var }}=doc_sum&{{ ordering.order_type_var }}={% if ordering.order_field == 'doc_sum' %}{% if ordering.order_type == 'asc' %}desc{% else %}asc{% endif %}{% else %}asc{% endif %}">Сумма</a>&nbsp;
{% if ordering.order_field == 'doc_sum' %}{% if ordering.order_type == 'asc' %}<span title="1-9">&uarr;</span>{% else %}<span title="9-1">&darr;</span>{% endif %}{% endif %}</th>
<th>Подписан?</th>
{% endblock %}
{% block table_obj_cells %}
<td><a href="{{ url_edit }}">{{ obj.doc_date|date:"d.m.Y" }}</a></td>
<td>{{ obj.doc_num }}</td>
<td>{{ obj.invoice.doc_num }}</td>
<td>{{ obj.client.name }}</td>
<td>{{ obj.doc_sum|default:"---" }}</td>
<td><a href="#" class="toggle_doc_status doc_status{{ obj.signed_status }}" data-doctype="aktrabot" data-attr="signed_status">{{ obj.get_signed_status_display }}</a></td>
{% endblock %}
{% block panel_copy %}
<a href="{{ url_copy }}" title="Копию акта">Копию акта</a><br />
<br />
{% block panel_copy_extra %}
{% comment %}<a href="{{ url_sfv_by_invoice }}" title="Счёт-фактуру">Счёт-фактуру</a>
<br />{% endcomment %}
<span style="color:#666">Счёт-фактуру</span><br />
{% endblock %}
{% endblock %}