From 34e518c14a0b5797803c20886d6510352b7fc83c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 1 Mar 2022 23:47:32 +0000 Subject: [PATCH] --- docs/8.0/ayanova/docs/home-dashboard.md | 39 +++++++++++++++++-- ...rkOrderItemLaborQuantityEveryoneSummary.cs | 4 +- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/docs/8.0/ayanova/docs/home-dashboard.md b/docs/8.0/ayanova/docs/home-dashboard.md index 04c81693..f5b5697c 100644 --- a/docs/8.0/ayanova/docs/home-dashboard.md +++ b/docs/8.0/ayanova/docs/home-dashboard.md @@ -106,6 +106,10 @@ The Last option moves the widget to be displayed to the last position which is b The remove option removes the widget from display. +### Hide / show chart legends + +Clicking on a legend in a bar or line chart will toggle hiding or showing data for that item. + ### Widgets available #### Open customer service requests @@ -153,8 +157,6 @@ Available filter criteria: - Work order item tags - Work order Status - - #### Reminders ![reminders](img/widget-reminders.png) @@ -181,9 +183,9 @@ Personal chart showing labor hours for current User, available as a Line or Bar ![labor hours personal bar chart](img/widget-labor-hours-personal-bar.png) -These chart format widgets are available to scheduleable users with a dashboard and display all personal labor hours summarized by selected time span and selected interval. +These chart format widgets are available to scheduleable users with a dashboard and display all personal labor hours summarized by selected time span and selected interval. -They will automatically update every 15 minutes approximately. +They will automatically update every 15 minutes approximately. Available filter criteria: @@ -191,3 +193,32 @@ Available filter criteria: - Interval - Work order tags - Work order item tags + +#### Service quantity - All + +Management chart showing labor hours for all Users that fit criteria selected, available as a Line or Bar chart: + +![Service quantity - All line chart](img/widget-labor-hours-all-line.png) + +![Service quantity - All bar chart](img/widget-labor-hours-all-bar.png) + +These chart format widgets display all labor hours grouped by User and summarized by selected time span and selected interval. + +They will automatically update every 15 minutes approximately. + +Available to the following roles: + +- Accounting +- Business administration +- Business administration - restricted +- Service manager +- Service manager - restricted + +Available filter criteria: + +- Time span +- Interval +- User tags +- User (specific single user only) +- Work order tags +- Work order item tags diff --git a/server/AyaNova/kpi/WorkOrderItemLaborQuantityEveryoneSummary.cs b/server/AyaNova/kpi/WorkOrderItemLaborQuantityEveryoneSummary.cs index 8cf1fcf5..68d0aa2d 100644 --- a/server/AyaNova/kpi/WorkOrderItemLaborQuantityEveryoneSummary.cs +++ b/server/AyaNova/kpi/WorkOrderItemLaborQuantityEveryoneSummary.cs @@ -64,7 +64,7 @@ AuthorizationRoles.Accounting; string userWhere = string.Empty; if (userid != null) { - userWhere = $"AND LASTSTATUSID = {userid}"; + userWhere = $"AND aworkorderitemlabor.userid = {userid}"; } @@ -74,7 +74,7 @@ FROM AWORKORDER LEFT JOIN AWORKORDERITEM ON AWORKORDER.ID = AWORKORDERITEM.WORKORDERID LEFT JOIN AWORKORDERITEMLABOR ON AWORKORDERITEM.ID = AWORKORDERITEMLABOR.WORKORDERITEMID LEFT JOIN AUSER ON AWORKORDERITEMLABOR.USERID = AUSER.ID -WHERE {dateWhere} {techTagsWhere} {woTagsWhere} {woItemTagsWhere} +WHERE {dateWhere} {userWhere} {techTagsWhere} {woTagsWhere} {woItemTagsWhere} GROUP BY Z, X ORDER BY X ASC ) t";