Добавлена Производственная таблица
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
<TR bgcolor={{attend.date.weekday_color}}>
|
||||
<TD>{{ attend.date.date_dd_mm_yy}}</TD>
|
||||
<TD>{{ attend.date.weekday_name}}</TD>
|
||||
<TD>{% inplace_edit "attend.attend.calls" %}</TD>
|
||||
<TD>{% inplace_edit "attend.attend.visits" %}</TD>
|
||||
<TD>{{attend.attend.calls}}</TD>
|
||||
<TD>{{attend.attend.visits}}</TD>
|
||||
<TD><a href="{% url 'asuzr-main' attend.date.day attend.date.month attend.date.year %}">{{ attend.orders_count}}</a></TD>
|
||||
<TD>{{ attend.orders_price}}</TD>
|
||||
<TD>{{ attend.designers}}</TD>
|
||||
|
||||
26
templates/asuzr/cost_items.html
Normal file
26
templates/asuzr/cost_items.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<TABLE BORDER WIDTH="100%">
|
||||
{% if cost_items %}
|
||||
<ul>
|
||||
<TR>
|
||||
<TH>{{sel_order.product.name}} <br> Комплектующие</TH>
|
||||
<TH>Стоимость <br> {{sel_order.price}}</TH>
|
||||
</TR>
|
||||
{% for item in cost_items %}
|
||||
<TR>
|
||||
<TD>{{ item }}</TD>
|
||||
<TD></TD>
|
||||
</TR>
|
||||
{% endfor %}
|
||||
<TR>
|
||||
<TD> Итого затрат</TD>
|
||||
<TD></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD> Прибыль</TD>
|
||||
<TD></TD>
|
||||
</TR>
|
||||
</ul>
|
||||
{% else %}
|
||||
<p> Список пуст</p>
|
||||
{% endif %}
|
||||
</TABLE>
|
||||
@@ -20,6 +20,6 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Список заказов пуст</p>
|
||||
<p>Список пуст</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
12
templates/asuzr/order_costs.html
Normal file
12
templates/asuzr/order_costs.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "asuzr/base.html" %}
|
||||
|
||||
{% block title %} Производственная таблица {% endblock %}
|
||||
{% block page %}
|
||||
<table WIDTH="100%">
|
||||
<TR VALIGN=top>
|
||||
<TD WIDTH="50%">{% include 'asuzr/production_table.html' %}</TD>
|
||||
<TD WIDTH="5%"></TD>
|
||||
<TD WIDTH="45%">{% include 'asuzr/cost_items.html' %}</TD>
|
||||
</TR>
|
||||
</table>
|
||||
{% endblock %}
|
||||
@@ -28,7 +28,7 @@
|
||||
<TR>
|
||||
<TD>{{ order.date_dmy }}</TD>
|
||||
<TD>{{ order.deadline_dmy }}</TD>
|
||||
<TD>{% inplace_edit "order.product.name" %}</TD>
|
||||
<TD>{% inplace_edit "order.product" %}</TD>
|
||||
<TD>{%if order.delivery%} Да {% else %} Нет {% endif %} </TD>
|
||||
<TD>{%if order.lifting%} Да {% else %} Нет {% endif %}</TD>
|
||||
<TD>{% inplace_edit "order.address" %}</TD>
|
||||
|
||||
22
templates/asuzr/production_table.html
Normal file
22
templates/asuzr/production_table.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% block page %}
|
||||
<TABLE BORDER>
|
||||
{% if order_list %}
|
||||
<ul>
|
||||
<TR>
|
||||
<TH WIDTH="40%">Наименование</TH>
|
||||
<TH>Срок сдачи</TH>
|
||||
<TH>Адрес</TH>
|
||||
</TR>
|
||||
{% for o in order_list %}
|
||||
<TR>
|
||||
<TD>{{o.product.name}}</TD>
|
||||
<TD>{{o.date_dmy}}</TD>
|
||||
<TD>{{o.address}}</TD>
|
||||
</TR>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Список заказов пуст</p>
|
||||
{% endif %}
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user