Добавлена Производственная таблица

This commit is contained in:
Anastasia
2015-06-07 15:05:08 +05:00
parent ea5270b295
commit 1882545308
11 changed files with 109 additions and 16 deletions

View File

@@ -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>

View 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>

View File

@@ -20,6 +20,6 @@
{% endfor %}
</ul>
{% else %}
<p>Список заказов пуст</p>
<p>Список пуст</p>
{% endif %}
{% endblock %}

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

View File

@@ -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>

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