mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 01:45:28 +00:00
Display an alert on a stock item page if that stock item is allocated to a salesorder
This commit is contained in:
1 parent
89ede3e103
commit
0d1919f10b
1 file changed
+6
@@ -5,6 +5,12 @@
|
||||
{% load i18n %}
|
||||
{% 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='col-sm-6'>
|
||||
|
||||
Reference in new issue
Block a user