This commit is contained in:
2022-03-01 23:47:32 +00:00
parent 4421e6d7e6
commit 34e518c14a
2 changed files with 37 additions and 6 deletions

View File

@@ -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. 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 ### Widgets available
#### Open customer service requests #### Open customer service requests
@@ -153,8 +157,6 @@ Available filter criteria:
- Work order item tags - Work order item tags
- Work order Status - Work order Status
#### Reminders #### Reminders
![reminders](img/widget-reminders.png) ![reminders](img/widget-reminders.png)
@@ -191,3 +193,32 @@ Available filter criteria:
- Interval - Interval
- Work order tags - Work order tags
- Work order item 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

View File

@@ -64,7 +64,7 @@ AuthorizationRoles.Accounting;
string userWhere = string.Empty; string userWhere = string.Empty;
if (userid != null) 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 AWORKORDERITEM ON AWORKORDER.ID = AWORKORDERITEM.WORKORDERID
LEFT JOIN AWORKORDERITEMLABOR ON AWORKORDERITEM.ID = AWORKORDERITEMLABOR.WORKORDERITEMID LEFT JOIN AWORKORDERITEMLABOR ON AWORKORDERITEM.ID = AWORKORDERITEMLABOR.WORKORDERITEMID
LEFT JOIN AUSER ON AWORKORDERITEMLABOR.USERID = AUSER.ID LEFT JOIN AUSER ON AWORKORDERITEMLABOR.USERID = AUSER.ID
WHERE {dateWhere} {techTagsWhere} {woTagsWhere} {woItemTagsWhere} WHERE {dateWhere} {userWhere} {techTagsWhere} {woTagsWhere} {woItemTagsWhere}
GROUP BY Z, X GROUP BY Z, X
ORDER BY X ASC ORDER BY X ASC
) t"; ) t";