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

Added 'salable' field to Part model

This commit is contained in:
Oliver
2018-04-17 18:11:34 +10:00
parent 9dc41ba122
commit 45c5edee4d
5 changed files with 43 additions and 7 deletions

View File

@@ -29,15 +29,19 @@
</tr>
<tr>
<td>Buildable</td>
<td>{{ part.buildable }}</td>
<td>{% include "yesnolabel.html" with value=part.buildable %}</td>
</tr>
<tr>
<td>Trackable</td>
<td>{{ part.trackable }}</td>
<td>{% include "yesnolabel.html" with value=part.trackable %}</td>
</tr>
<tr>
<td>Purchaseable</td>
<td>{{ part.purchaseable }}</td>
<td>{% include "yesnolabel.html" with value=part.purchaseable %}</td>
</tr>
<tr>
<td>Salable</td>
<td>{% include "yesnolabel.html" with value=part.salable %}</td>
</tr>
{% if part.minimum_stock > 0 %}
<tr>

View File

@@ -0,0 +1,5 @@
{% if value %}
<span class='label label-success'>Yes</span>
{% else %}
<span class='label label-warning'>No</span>
{% endif %}