2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 23:51:08 +00:00

Add "default_expiry" field to Part model

This commit is contained in:
Oliver Walters
2021-01-04 23:36:11 +11:00
parent 692cee113c
commit 37dcf1c1cf
4 changed files with 73 additions and 8 deletions

View File

@@ -109,6 +109,13 @@
<td>{{ part.minimum_stock }}</td>
</tr>
{% endif %}
{% if part.default_expiry > 0 %}
<tr>
<td><span class='fas fa-stopwatch'></span></td>
<td><b>{% trans "Stock Expiry Time" %}</b></td>
<td>{{ part.default_expiry }} {% trans "days" %}</td>
</tr>
{% endif %}
<tr>
<td><span class='fas fa-calendar-alt'></span></td>
<td><b>{% trans "Creation Date" %}</b></td>