From 78c8a4f1d6b59839537bef08c65a4006d46760d3 Mon Sep 17 00:00:00 2001 From: Sebastian Colorado Date: Thu, 10 Dec 2015 19:41:10 -0500 Subject: [PATCH] Finished reports --- TeamDBAwesome/TeamDBAwesome/js/adminController.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TeamDBAwesome/TeamDBAwesome/js/adminController.js b/TeamDBAwesome/TeamDBAwesome/js/adminController.js index 7b76474..5ea074f 100644 --- a/TeamDBAwesome/TeamDBAwesome/js/adminController.js +++ b/TeamDBAwesome/TeamDBAwesome/js/adminController.js @@ -235,6 +235,7 @@ angular.module('routerApp').controller('adminController', function ($scope, $htt //CustomerDemographics $scope.custInfoGridOptions = { enableFiltering: true, + showGridFooter: true, columnDefs: [ {field: 'FName', displayName: 'First Name'}, {field: 'LName', displayName: 'Last Name'}, @@ -477,7 +478,7 @@ angular.module('routerApp').controller('adminController', function ($scope, $htt $scope.inventoryGridOptions = { enableFiltering: true, showColumnFooter: true, - showGridFoorter: true, + showGridFooter: true, columnDefs: [ { field: 'TrackName', displayName: 'Track Title', width:'20%' }, { field: 'artist' }, @@ -506,7 +507,7 @@ angular.module('routerApp').controller('adminController', function ($scope, $htt $scope.salesGridOptions = { enableFiltering: true, showColumnFooter: true, - showGridFoorter: true, + showGridFooter: true, columnDefs: [ { field: 'invoiceId', displayName: 'Invoice Id', filters: [ @@ -550,7 +551,9 @@ angular.module('routerApp').controller('adminController', function ($scope, $htt condition: uiGridConstants.filter.LESS_THAN, placeholder: 'less than' } - ] + ], + aggregationType: uiGridConstants.aggregationTypes.sum, + width: '15%' } ] }