"Part" column in Stock table links to supplier part

(cherry picked from commit 5f0080cc54)
This commit is contained in:
Oliver Walters 2020-04-13 18:53:50 +10:00
parent 2506aa110b
commit 14d18e9d95

View File

@ -229,7 +229,9 @@ function loadStockTable(table, options) {
name += row.part__revision; name += row.part__revision;
} }
return imageHoverIcon(row.part__thumbnail) + renderLink(name, '/part/' + row.part + '/stock/'); var url = `/supplier-part/${row.supplier_part}/`;
return imageHoverIcon(row.part__thumbnail) + renderLink(name, url);
} }
}, },
{ {