2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 13:35:40 +00:00

StockLocation labels are now printable

This commit is contained in:
Oliver Walters
2021-01-11 18:41:57 +11:00
parent af47b211fd
commit d91700fd39
2 changed files with 76 additions and 15 deletions

View File

@ -89,7 +89,13 @@ function printStockLocationLabels(locations, options={}) {
locations,
{
success: function(pk) {
// TODO - Print the label!
var href = `/api/label/location/${pk}/print/?`;
locations.forEach(function(location) {
href += `locations[]=${location}&`;
});
window.location.href = href;
}
}
);