@@ -154,6 +160,18 @@ $("#view-list").click(function() {
$("#view-calendar").show();
});
+$("#order-print").click(function() {
+ var rows = $("#purchase-order-table").bootstrapTable('getSelections');
+
+ var orders = [];
+
+ rows.forEach(function(row) {
+ orders.push(row.pk);
+ });
+
+ printPurchaseOrderReports(orders);
+})
+
$("#po-create").click(function() {
launchModalForm("{% url 'po-create' %}",
{
diff --git a/InvenTree/order/templates/order/sales_orders.html b/InvenTree/order/templates/order/sales_orders.html
index 257ee13887..6d4be9fff6 100644
--- a/InvenTree/order/templates/order/sales_orders.html
+++ b/InvenTree/order/templates/order/sales_orders.html
@@ -15,18 +15,24 @@ InvenTree | {% trans "Sales Orders" %}