mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Display current stock item quantity in stock-adjust modal form
This commit is contained in:
parent
d2d5909701
commit
b3ec748123
@ -1,4 +1,5 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load inventree_extras %}
|
||||||
|
|
||||||
{% block pre_form_content %}
|
{% block pre_form_content %}
|
||||||
|
|
||||||
@ -14,10 +15,9 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>{% trans "Stock Item" %}</th>
|
<th>{% trans "Stock Item" %}</th>
|
||||||
<th>{% trans "Location" %}</th>
|
<th>{% trans "Location" %}</th>
|
||||||
|
<th>{% trans "Quantity" %}</th>
|
||||||
{% if edit_quantity %}
|
{% if edit_quantity %}
|
||||||
<th>{{ stock_action_title }}</th>
|
<th>{{ stock_action_title }}</th>
|
||||||
{% else %}
|
|
||||||
<th>{% trans "Quantity" %}</th>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -26,6 +26,7 @@
|
|||||||
<td>{% include "hover_image.html" with image=item.part.image hover=True %}
|
<td>{% include "hover_image.html" with image=item.part.image hover=True %}
|
||||||
{{ item.part.full_name }} <small><i>{{ item.part.description }}</i></small></td>
|
{{ item.part.full_name }} <small><i>{{ item.part.description }}</i></small></td>
|
||||||
<td>{{ item.location.pathstring }}</td>
|
<td>{{ item.location.pathstring }}</td>
|
||||||
|
<td>{% decimal item.quantity %}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if edit_quantity %}
|
{% if edit_quantity %}
|
||||||
<input class='numberinput'
|
<input class='numberinput'
|
||||||
@ -36,7 +37,6 @@
|
|||||||
<br><span class='help-inline'>{{ item.error }}</span>
|
<br><span class='help-inline'>{{ item.error }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ item.new_quantity }}
|
|
||||||
<input type='hidden' name='stock-id-{{ item.id }}' value='{{ item.new_quantity }}'/>
|
<input type='hidden' name='stock-id-{{ item.id }}' value='{{ item.new_quantity }}'/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user