2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Download PDF for labels

This commit is contained in:
Oliver Walters
2021-01-09 21:50:42 +11:00
parent bdc7367e29
commit e133fff03e
6 changed files with 96 additions and 34 deletions

View File

@ -654,28 +654,7 @@ function loadStockTable(table, options) {
items.push(item.pk);
});
// Request available labels from the server
inventreeGet(
'{% url "api-stockitem-label-list" %}',
{
enabled: true,
items: items,
},
{
success: function(response) {
if (response.length == 0) {
showAlertDialog(
'{% trans "No Labels Found" %}',
'{% trans "No labels found which match selected stock item(s)" %}',
);
return;
}
var label = selectLabel(response);
}
}
);
printStockItemLabels(items);
});
$('#multi-item-stocktake').click(function() {