diff --git a/seed/static/seed/js/controllers/inventory_reports_controller.js b/seed/static/seed/js/controllers/inventory_reports_controller.js index 0d322b260e..2eed57e7ba 100644 --- a/seed/static/seed/js/controllers/inventory_reports_controller.js +++ b/seed/static/seed/js/controllers/inventory_reports_controller.js @@ -65,6 +65,16 @@ angular.module('SEED.controller.inventory_reports', []).controller('inventory_re $scope.filter_groups = filter_groups; $scope.report_configurations = report_configurations; $scope.filter_group_id = null; + + $scope.has_children = (obj) => { + // check if the access level selected has children levels for stats table + let children = false; + if ('children' in obj && Object.keys(obj.children).length > 0) { + children = true; + } + return children; + }; + function path_to_string(path) { const orderedPath = []; for (const i in $scope.level_names) { diff --git a/seed/static/seed/partials/inventory_reports.html b/seed/static/seed/partials/inventory_reports.html index f612743d0e..2e8b4936ce 100644 --- a/seed/static/seed/partials/inventory_reports.html +++ b/seed/static/seed/partials/inventory_reports.html @@ -267,14 +267,13 @@

Statistics

Max - + {$ key $} {$ item $} {$ item | tolerantNumber:2 $} - - +