mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Fix rendering for "sales order allocations" table
This commit is contained in:
		| @@ -2048,15 +2048,7 @@ function loadSalesOrderAllocationTable(table, options={}) { | ||||
|                 field: 'location', | ||||
|                 title: '{% trans "Location" %}', | ||||
|                 formatter: function(value, row) { | ||||
|  | ||||
|                     if (!value) { | ||||
|                         return '{% trans "Location not specified" %}'; | ||||
|                     } | ||||
|                      | ||||
|                     var link = `/stock/location/${value}`; | ||||
|                     var text = row.location_detail.description; | ||||
|  | ||||
|                     return renderLink(text, link); | ||||
|                     return locationDetail(row.item_detail, true); | ||||
|                 } | ||||
|             }, | ||||
|             { | ||||
|   | ||||
| @@ -341,6 +341,15 @@ function getAvailableTableFilters(tableKey) { | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     if (tableKey == 'salesorderallocation') { | ||||
|         return { | ||||
|             outstanding: { | ||||
|                 type: 'bool', | ||||
|                 title: '{% trans "Outstanding" %}', | ||||
|             } | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     if (tableKey == 'salesorder') { | ||||
|         return { | ||||
|             status: { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user