Prevent expired stock from being added to a sales order

This commit is contained in:
Oliver Walters committed 2021-01-06 20:22:56 +11:00
1 parent 9b086560cb
commit 580e7599a0
2 files changed
+12 -1

No files matched your search

+4
View File
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load i18n %}
{% load inventree_extras %}
{% block page_title %}
InvenTree | {% trans "Index" %}
{% endblock %}
@@ -22,7 +23,10 @@ InvenTree | {% trans "Index" %}
<div class='col-sm-4'>
{% if roles.stock.view %}
{% include "InvenTree/low_stock.html" with collapse_id="order" %}
{% settings_value "STOCK_ENABLE_EXPIRY" as expiry %}
{% if expiry %}
{% include "InvenTree/expired_stock.html" with collapse_id="expired" %}
{% endif %}
{% include "InvenTree/required_stock_build.html" with collapse_id="stock_to_build" %}
{% endif %}
</div>