This commit is contained in:
Oliver Walters 2021-08-30 15:34:46 +10:00
parent e0e7788af6
commit bb3b6fdc4d

View File

@ -1,6 +1,25 @@
{% load i18n %} {% load i18n %}
function printStockItemLabels(items, options={}) { /* globals
attachSelect,
closeModal,
inventreeGet,
makeOptionsList,
modalEnable,
modalSetContent,
modalSetTitle,
modalSubmit,
openModal,
showAlertDialog,
*/
/* exported
printPartLabels,
printStockItemLabels,
printStockLocationLabels,
*/
function printStockItemLabels(items) {
/** /**
* Print stock item labels for the given stock items * Print stock item labels for the given stock items
*/ */
@ -54,7 +73,7 @@ function printStockItemLabels(items, options={}) {
); );
} }
function printStockLocationLabels(locations, options={}) { function printStockLocationLabels(locations) {
if (locations.length == 0) { if (locations.length == 0) {
showAlertDialog( showAlertDialog(
@ -105,7 +124,7 @@ function printStockLocationLabels(locations, options={}) {
} }
function printPartLabels(parts, options={}) { function printPartLabels(parts) {
/** /**
* Print labels for the provided parts * Print labels for the provided parts
*/ */