mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
Display allocations for individual stock items
This commit is contained in:
1 parent
60cde7fe13
commit
5ec1d5aab8
4 files changed
+47
-3
No files matched your search
@@ -2308,9 +2308,14 @@ function loadStockAllocationTable(table, options={}) {
|
||||
title: '{% trans "Allocated Quantity" %}',
|
||||
formatter: function(value, row) {
|
||||
var text = value;
|
||||
var url = `/stock/item/${row.stock_item}/`;
|
||||
var pk = row.stock_item || row.item;
|
||||
|
||||
return renderLink(text, url);
|
||||
if (pk) {
|
||||
var url = `/stock/item/${pk}/`;
|
||||
return renderLink(text, url);
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user