2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Refactoring

This commit is contained in:
Oliver Walters
2021-02-16 20:14:13 +11:00
parent b09e9c0781
commit f87b15e4ea
2 changed files with 10 additions and 31 deletions

View File

@ -129,7 +129,7 @@ function printTestReports(items, options={}) {
var href = `/api/report/test/${pk}/print/?`;
items.forEach(function(item) {
href += `items[]=${item}&`;
href += `item=${item}&`;
});
window.location.href = href;
@ -182,7 +182,7 @@ function printBuildReports(builds, options={}) {
var href = `/api/report/build/${pk}/print/?`;
builds.forEach(function(build) {
href += `builds[]=${build}&`;
href += `build=${build}&`;
});
window.location.href = href;
@ -236,7 +236,7 @@ function printBomReports(parts, options={}) {
var href = `/api/report/bom/${pk}/print/?`;
parts.forEach(function(part) {
href += `parts[]=${part}&`;
href += `part=${part}&`;
});
window.location.href = href;