mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Bug fix for displaying batch information
This commit is contained in:
		| @@ -108,7 +108,7 @@ function renderStockItem(name, data, parameters={}, options={}) { | ||||
|             stock_detail = `{% trans "Quantity" %}: ${data.quantity}`; | ||||
|         } | ||||
|  | ||||
|         if (data.batch != null) { | ||||
|         if (data.batch) { | ||||
|             stock_detail += ` - <small>{% trans "Batch" %}: ${data.batch}</small>`; | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -964,7 +964,7 @@ function adjustStock(action, items, options={}) { | ||||
|             quantity = `#${item.serial}`; | ||||
|         } | ||||
|  | ||||
|         if (item.batch != null) { | ||||
|         if (item.batch) { | ||||
|             quantity += ` - <small>{% trans "Batch" %}: ${item.batch}</small>`; | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user