mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Display an alert on a stock item page if that stock item is allocated to a salesorder
This commit is contained in:
		| @@ -5,6 +5,12 @@ | |||||||
| {% load i18n %} | {% load i18n %} | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
|  | {% if item.sales_order %} | ||||||
|  | <div class='alert alert-block alert-info'> | ||||||
|  |     {% trans "This stock item is allocated to " %} | ||||||
|  |     <a href="{% url 'so-detail' item.sales_order.order.id %}"><b>{{ item.sales_order.order }}</b></a> | ||||||
|  | </div> | ||||||
|  | {% endif %} | ||||||
|  |  | ||||||
| <div class='row'> | <div class='row'> | ||||||
|     <div class='col-sm-6'> |     <div class='col-sm-6'> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user