diff --git a/InvenTree/part/templates/part/subcategories.html b/InvenTree/part/templates/part/subcategories.html index abf61d743e..c503d5504c 100644 --- a/InvenTree/part/templates/part/subcategories.html +++ b/InvenTree/part/templates/part/subcategories.html @@ -12,7 +12,9 @@ {% if child.description %} - {{ child.description }} {% endif %} - {{ child.partcount }} + {% if child.partcount > 0 %} + {{ child.partcount }} Part{% if child.partcount > 1 %}s{% endif %} + {% endif %} {% endfor %} diff --git a/InvenTree/stock/templates/stock/location_list.html b/InvenTree/stock/templates/stock/location_list.html index 9ce7a1814c..a6e1811f46 100644 --- a/InvenTree/stock/templates/stock/location_list.html +++ b/InvenTree/stock/templates/stock/location_list.html @@ -8,7 +8,9 @@ Sub-Locations{{ children|length }}