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

Adds exporter and download button for PurchaseOrder table

This commit is contained in:
Oliver
2022-05-12 11:41:25 +10:00
parent 465e69c254
commit 1b1f7634b7
4 changed files with 34 additions and 5 deletions

View File

@ -1394,7 +1394,9 @@ function loadPurchaseOrderTable(table, options) {
filters[key] = options.params[key];
}
setupFilterList('purchaseorder', $(table));
var target = '#filter-list-purchaseorder';
setupFilterList('purchaseorder', $(table), target, {download: true});
$(table).inventreeTable({
url: '{% url "api-po-list" %}',