mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Add "IPN" column to part table
This commit is contained in:
		| @@ -95,6 +95,8 @@ function loadPartTable(table, url, options={}) { | |||||||
|             field: 'pk', |             field: 'pk', | ||||||
|             title: 'ID', |             title: 'ID', | ||||||
|             visible: false, |             visible: false, | ||||||
|  |             switchable: false, | ||||||
|  |             searchable: false, | ||||||
|         } |         } | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
| @@ -103,9 +105,16 @@ function loadPartTable(table, url, options={}) { | |||||||
|             checkbox: true, |             checkbox: true, | ||||||
|             title: '{% trans 'Select' %}', |             title: '{% trans 'Select' %}', | ||||||
|             searchable: false, |             searchable: false, | ||||||
|  |             switchable: false, | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     columns.push({ | ||||||
|  |         field: 'IPN', | ||||||
|  |         title: 'IPN', | ||||||
|  |         sortable: true, | ||||||
|  |     }), | ||||||
|  |  | ||||||
|     columns.push({ |     columns.push({ | ||||||
|         field: 'name', |         field: 'name', | ||||||
|         title: '{% trans 'Part' %}', |         title: '{% trans 'Part' %}', | ||||||
| @@ -231,6 +240,7 @@ function loadPartTable(table, url, options={}) { | |||||||
|         original: params, |         original: params, | ||||||
|         formatNoMatches: function() { return "{% trans "No parts found" %}"; }, |         formatNoMatches: function() { return "{% trans "No parts found" %}"; }, | ||||||
|         columns: columns, |         columns: columns, | ||||||
|  |         showColumns: true, | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|     if (options.buttons) { |     if (options.buttons) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user