in operation add current
This commit is contained in:
1 parent
3b26ee3f93
commit
333f990170
2 files changed
+37
-13
No files matched your search
@@ -2,16 +2,16 @@
|
||||
{% load custom_tags %}
|
||||
|
||||
{% block storeBody %}
|
||||
<p class="has-text-centered mt-2 mb-2 is-size-5 ">{{ storeO.store_name }}</p>
|
||||
<p class="has-text-centered mt-2 mb-2 is-size-5 ">{{ storeO.store_name }}</p>
|
||||
|
||||
<table class="table m-auto has-text-centered table is-bordered is-striped is-narrow is-fullwidth mojodiTB ">
|
||||
<table class="table m-auto has-text-centered table is-bordered is-striped is-narrow is-fullwidth mojodiTB">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>نام محصول</th>
|
||||
<th>ورود</th>
|
||||
<th>خروج</th>
|
||||
<th>توضیحات</th>
|
||||
<th>ناریخ</th>
|
||||
<th>مانده در لحظه</th> <th>توضیحات</th>
|
||||
<th>تاریخ</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
@@ -19,8 +19,8 @@
|
||||
<th>نام محصول</th>
|
||||
<th>ورود</th>
|
||||
<th>خروج</th>
|
||||
<th>توضیحات</th>
|
||||
<th>ناریخ</th>
|
||||
<th>مانده در لحظه</th> <th>توضیحات</th>
|
||||
<th>تاریخ</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
@@ -29,6 +29,9 @@
|
||||
<td>{{ operation.Product.product_name }} </td>
|
||||
<td>{{ operation.s_in }}</td>
|
||||
<td>{{ operation.s_out }}</td>
|
||||
<td class="has-text-weight-bold {% if operation.current_stock_at_time < 0 %}has-text-danger{% else %}has-text-dark{% endif %}">
|
||||
{{ operation.current_stock_at_time }}
|
||||
</td>
|
||||
<td>{{ operation.desc }}</td>
|
||||
<td>{{ operation.createdDT | toJalali }}</td>
|
||||
</tr>
|
||||
@@ -58,4 +61,4 @@
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user