mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Adds refresh and filtering for "company" table
This commit is contained in:
		| @@ -380,6 +380,7 @@ function loadCompanyTable(table, url, options={}) { | ||||
|         url: url, | ||||
|         method: 'get', | ||||
|         queryParams: filters, | ||||
|         original: params, | ||||
|         groupBy: false, | ||||
|         sidePagination: 'server', | ||||
|         formatNoMatches: function() { | ||||
|   | ||||
| @@ -381,6 +381,24 @@ function getAvailableTableFilters(tableKey) { | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     // Filters for "company" table | ||||
|     if (tableKey == 'company') { | ||||
|         return { | ||||
|             is_manufacturer: { | ||||
|                 type: 'bool', | ||||
|                 title: '{% trans "Manufacturer" %}', | ||||
|             }, | ||||
|             is_supplier: { | ||||
|                 type: 'bool', | ||||
|                 title: '{% trans "Supplier" %}', | ||||
|             }, | ||||
|             is_customer: { | ||||
|                 type: 'bool', | ||||
|                 title: '{% trans "Customer" %}', | ||||
|             }, | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     // Filters for the "Parts" table | ||||
|     if (tableKey == 'parts') { | ||||
|         return { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user