From 729968e65d5b58bde5a5eb07f539b7f34eaf36f5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 28 May 2019 22:05:30 +1000 Subject: [PATCH] Better message for no stock found --- InvenTree/static/script/inventree/stock.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/static/script/inventree/stock.js b/InvenTree/static/script/inventree/stock.js index eeae749461..5794333ae8 100644 --- a/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/static/script/inventree/stock.js @@ -384,6 +384,9 @@ function loadStockTable(table, options) { pagination: true, pageSize: 25, rememberOrder: true, + formatNoMatches: function() { + return 'No stock items matching query'; + }, groupBy: true, groupByField: options.groupByField || 'part', groupByFormatter: function(field, id, data) {