mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Rendering fix for build allocation table (#5145)
- Fix link to part - Fix link to stock item
This commit is contained in:
		| @@ -2255,16 +2255,16 @@ function renderBuildLineAllocationTable(element, build_line, options={}) { | ||||
|             { | ||||
|                 field: 'part', | ||||
|                 title: '{% trans "Part" %}', | ||||
|                 formatter: function(value, row) { | ||||
|                 formatter: function(_value, row) { | ||||
|                     let html = imageHoverIcon(row.part_detail.thumbnail); | ||||
|                     html += renderLink(row.part_detail.full_name, `/part/${value}/`); | ||||
|                     html += renderLink(row.part_detail.full_name, `/part/${row.part_detail.pk}/`); | ||||
|                     return html; | ||||
|                 } | ||||
|             }, | ||||
|             { | ||||
|                 field: 'quantity', | ||||
|                 title: '{% trans "Allocated Quantity" %}', | ||||
|                 formatter: function(value, row) { | ||||
|                 formatter: function(_value, row) { | ||||
|                     let text = ''; | ||||
|                     let url = ''; | ||||
|                     let serial = row.serial; | ||||
| @@ -2294,8 +2294,8 @@ function renderBuildLineAllocationTable(element, build_line, options={}) { | ||||
|                 title: '{% trans "Location" %}', | ||||
|                 formatter: function(value, row) { | ||||
|                     if (row.location_detail) { | ||||
|                         var text = shortenString(row.location_detail.pathstring); | ||||
|                         var url = `/stock/location/${row.location}/`; | ||||
|                         let text = shortenString(row.location_detail.pathstring); | ||||
|                         let url = `/stock/location/${row.location_detail.pk}/`; | ||||
|  | ||||
|                         return renderLink(text, url); | ||||
|                     } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user