diff --git a/InvenTree/templates/js/stock.html b/InvenTree/templates/js/stock.html
index f06615f2f5..11cf6a94e3 100644
--- a/InvenTree/templates/js/stock.html
+++ b/InvenTree/templates/js/stock.html
@@ -1,4 +1,5 @@
{% load i18n %}
+{% load status_codes %}
/* Stock API functions
* Requires api.js to be loaded first
@@ -460,12 +461,26 @@ function loadStockTable(table, options) {
var html = renderLink(val, `/stock/item/${row.pk}/`);
if (row.allocated) {
- html += ``;
+ html += ``;
}
+ if (row.customer) {
+ html += ``;
+ } else if (row.build_order) {
+ html += ``;
+ } else if (row.sales_order) {
+ html += ``;
+ }
+
+ // Special stock status codes
+
+ // 65 = "REJECTED"
+ if (row.status == 65) {
+ html += ``;
+ }
// 70 = "LOST"
- if (row.status == 70) {
- html += ``;
+ else if (row.status == 70) {
+ html += ``;
}
if (row.quantity <= 0) {