Merge pull request #863 from SchrodingersGat/decimalfix

Decimalize display of variant stock
This commit is contained in:
Oliver 2020-06-09 13:44:47 +10:00 committed by GitHub
commit aeba189c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
{% extends "part/part_base.html" %} {% extends "part/part_base.html" %}
{% load static %} {% load static %}
{% load inventree_extras %}
{% block details %} {% block details %}
{% include "part/tabs.html" with tab='variants' %} {% include "part/tabs.html" with tab='variants' %}
@ -40,7 +41,7 @@
{% endif %} {% endif %}
</td> </td>
<td>{{ variant.description }}</td> <td>{{ variant.description }}</td>
<td>{{ variant.total_stock }}</td> <td>{% decimal variant.total_stock %}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>