{% extends 'delete_obj.html' %} {% block del_title %} Are you sure you want to delete stock location '{{ location.name }}'? {% endblock %} {% block del_body %} {% if location.children.all|length > 0 %}
This location contains {{ location.children.all|length }} child locations.
If this location is deleted, these child locations will be moved to
{% if location.parent %}
the '{{ location.parent.name }}' location.
{% else %}
the top level 'Stock' location.
{% endif %}
This location contains {{ location.items.all|length }} stock items.
{% if location.parent %}
If this location is deleted, these items will be moved to the '{{ location.parent.name }}' location.
{% else %}
If this location is deleted, these items will be moved to the top level 'Stock' location.
{% endif %}