From 5a9e5dea20e4d1d5440e2e0732c15c5217d7e940 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 20 Sep 2019 00:00:34 +1000 Subject: [PATCH] Add sub-category and part count --- InvenTree/part/templates/part/category.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index c3477f47c2..f6c49b2094 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -52,6 +52,14 @@ {{ category.default_keywords }} {% endif %} + + Subcategories + {{ category.children.count }} + + + Parts (Including subcategories) + {{ category.partcount }} + {% endif %}