mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Bug fix for javascript
- If location not set for StockItem, display special text
This commit is contained in:
		| @@ -65,7 +65,12 @@ function updateStock(items, options={}) { | |||||||
|         html += '<tr>'; |         html += '<tr>'; | ||||||
|  |  | ||||||
|         html += '<td>' + item.part.name + '</td>'; |         html += '<td>' + item.part.name + '</td>'; | ||||||
|         html += '<td>' + item.location.name + '</td>'; |  | ||||||
|  |         if (item.location) { | ||||||
|  |             html += '<td>' + item.location.name + '</td>'; | ||||||
|  |         } else { | ||||||
|  |             html += '<td><i>No location set</i></td>'; | ||||||
|  |         } | ||||||
|         html += "<td><input class='form-control' "; |         html += "<td><input class='form-control' "; | ||||||
|         html += "value='" + vCur + "' "; |         html += "value='" + vCur + "' "; | ||||||
|         html += "min='" + vMin + "' "; |         html += "min='" + vMin + "' "; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user