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:
@@ -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>
|
||||
|
5
InvenTree/part/templates/yesnolabel.html
Normal file
5
InvenTree/part/templates/yesnolabel.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% if value %}
|
||||
<span class='label label-success'>Yes</span>
|
||||
{% else %}
|
||||
<span class='label label-warning'>No</span>
|
||||
{% endif %}
|
Reference in New Issue
Block a user