Display a warning message if delete_on_deplete is set

This commit is contained in:
Oliver Walters 2019-09-07 21:18:32 +10:00
parent b4bbd43bae
commit 023c386f5e

View File

@ -49,6 +49,10 @@
<div class='alert alert-block alert-info'>
This stock item is serialized - it has a unique serial number and the quantity cannot be adjusted.
</div>
{% elif item.delete_on_deplete %}
<div class='alert alert-block alert-warning'>
This stock item will be automatically deleted when all stock is depleted.
</div>
{% endif %}
</div>