StockLocation labels are now printable

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

No files matched your search

+7 -1
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;
}
}
);