"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

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