From 952da196000f92164a85b99255033b7d0498be05 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 18 Jan 2021 21:42:55 +1100 Subject: [PATCH] Print test report for multiple stock items at once --- InvenTree/templates/js/report.js | 11 ++++++++++- InvenTree/templates/js/stock.js | 13 +++++++++++++ InvenTree/templates/stock_table.html | 1 + 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/js/report.js b/InvenTree/templates/js/report.js index 3216e5dfe1..da84433bac 100644 --- a/InvenTree/templates/js/report.js +++ b/InvenTree/templates/js/report.js @@ -29,8 +29,17 @@ function selectTestReport(reports, items, options={}) { ); // Construct form - var html = ` + var html = ''; + if (items.length > 0) { + + html += ` +
+ ${items.length} {% trans "stock items selected" %} +
`; + } + + html += `