Display "depleted" label next to depleted stock

This commit is contained in:
Oliver Walters 2020-08-08 17:11:50 +10:00
parent 96a3f2920d
commit bc3fda71a4

View File

@ -468,6 +468,10 @@ function loadStockTable(table, options) {
html += `<span class='fas fa-question-circle label-right' title='{% trans "StockItem is lost" %}'></span>`;
}
if (row.quantity <= 0) {
html += `<span class='label label-right label-danger'>{% trans "Depleted" %}</span>`;
}
return html;
}
},