2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Adds ability to download purchase order line item table

This commit is contained in:
Oliver
2022-03-04 00:45:30 +11:00
parent f6b574a127
commit 846899fa53
2 changed files with 33 additions and 4 deletions

View File

@ -1051,7 +1051,7 @@ function loadPurchaseOrderLineItemTable(table, options={}) {
var target = options.filter_target || '#filter-list-purchase-order-lines';
setupFilterList('purchaseorderlineitem', $(table), target);
setupFilterList('purchaseorderlineitem', $(table), target, {download: true});
function setupCallbacks() {
if (options.allow_edit) {
@ -1078,7 +1078,7 @@ function loadPurchaseOrderLineItemTable(table, options={}) {
});
}
});
})
});
// Callback for "edit" button
$(table).find('.button-line-edit').click(function() {
@ -2583,7 +2583,7 @@ function loadSalesOrderLineItemTable(table, options={}) {
fields: fields,
data: data,
title: '{% trans "Duplicate Line Item" %}',
onSuccess: function(response) {
onSuccess: function(response) {
$(table).bootstrapTable('refresh');
}
});