2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Add a custom "id" to the progress bar

This commit is contained in:
Oliver Walters
2020-04-21 21:43:04 +10:00
parent 4979c690d9
commit 15166c7797
2 changed files with 6 additions and 2 deletions

View File

@ -133,7 +133,9 @@ $("#so-lines-table").inventreeTable({
field: 'quantity',
title: 'Quantity',
formatter: function(value, row, index, field) {
return makeProgressBar(row.allocated, row.quantity);
return makeProgressBar(row.allocated, row.quantity, {
id: `order-line-progress-${row.pk}`,
});
},
sorter: function(valA, valB, rowA, rowB) {