diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index af07952a7e..44e3ee0daa 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -138,6 +138,7 @@
  • {% trans "Set Category" %}
  • {% endif %}
  • {% trans "Order Parts" %}
  • +
  • {% trans "Print Labels" %}
  • {% trans "Export Data" %}
  • @@ -337,4 +338,4 @@ default: 'part-stock' }); -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index 93fb7066a4..4ed631fe61 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -1003,6 +1003,18 @@ function loadPartTable(table, url, options={}) { }); }); + $('#multi-part-print-label').click(function() { + var selections = $(table).bootstrapTable('getSelections'); + + var items = []; + + selections.forEach(function(item) { + items.push(item.pk); + }); + + printPartLabels(items); + }); + $('#multi-part-export').click(function() { var selections = $(table).bootstrapTable("getSelections");