mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Show which parts are short in build view
This commit is contained in:
parent
fedbb834ee
commit
628a58e8fc
@ -98,11 +98,11 @@
|
|||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bomrowvalid {
|
.rowvalid {
|
||||||
color: #050;
|
color: #050;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bomrowinvalid {
|
.rowinvalid {
|
||||||
color: #A00;
|
color: #A00;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
@ -280,9 +280,9 @@ function loadBomTable(table, options) {
|
|||||||
search: true,
|
search: true,
|
||||||
rowStyle: function(row, index) {
|
rowStyle: function(row, index) {
|
||||||
if (row.validated) {
|
if (row.validated) {
|
||||||
return {classes: 'bomrowvalid'};
|
return {classes: 'rowvalid'};
|
||||||
} else {
|
} else {
|
||||||
return {classes: 'bomrowinvalid'};
|
return {classes: 'rowinvalid'};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
formatNoMatches: function() { return "No BOM items found"; },
|
formatNoMatches: function() { return "No BOM items found"; },
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for item in build.required_parts %}
|
{% for item in build.required_parts %}
|
||||||
<tr>
|
<tr {% if build.status == BuildStatus.PENDING %}class='{% if item.part.total_stock > item.quantity %}rowvalid{% else %}rowinvalid{% endif %}'{% endif %}>
|
||||||
<td>
|
<td>
|
||||||
{% include "hover_image.html" with image=item.part.image hover=True %}
|
{% include "hover_image.html" with image=item.part.image hover=True %}
|
||||||
<a class='hover-icon'a href="{% url 'part-detail' item.part.id %}">{{ item.part.full_name }}</a>
|
<a class='hover-icon'a href="{% url 'part-detail' item.part.id %}">{{ item.part.full_name }}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user