mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Refactor selectTestReport into selectReport
This commit is contained in:
parent
12821b80fb
commit
ba85ff63bf
@ -1,10 +1,10 @@
|
||||
{% load i18n %}
|
||||
|
||||
|
||||
function selectTestReport(reports, items, options={}) {
|
||||
function selectReport(reports, items, options={}) {
|
||||
/**
|
||||
* Present the user with the available test reports,
|
||||
* and allow them to select which test report to print.
|
||||
* Present the user with the available reports,
|
||||
* and allow them to select which report to print.
|
||||
*
|
||||
* The intent is that the available report templates have been requested
|
||||
* (via AJAX) from the server.
|
||||
@ -44,7 +44,7 @@ function selectTestReport(reports, items, options={}) {
|
||||
|
||||
html += `
|
||||
<div class='alert alert-block alert-info'>
|
||||
${items.length} {% trans "stock items selected" %}
|
||||
${items.length} {% trans "items selected" %}
|
||||
</div>`;
|
||||
}
|
||||
|
||||
@ -121,7 +121,7 @@ function printTestReports(items, options={}) {
|
||||
}
|
||||
|
||||
// Select report template to print
|
||||
selectTestReport(
|
||||
selectReport(
|
||||
response,
|
||||
items,
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user