This commit is contained in:
2022-03-02 21:06:36 +00:00
parent b6a574d75a
commit de27b59e2b
5 changed files with 838 additions and 27 deletions

View File

@@ -50,35 +50,12 @@ https://www.calculator.net/percent-calculator.html
- Widgets to make for beta in order of priority
**MUST HAVE***
* LIST overdue workorders (booked on, in the past, not a closed status, passed completeby date) for current scheduleable user
criteria:
tags wo, woitem
SELECT distinct(AWORKORDER.ID),
AWORKORDER.SERIAL,
AWORKORDER.completebydate,
ACUSTOMER.NAME,
AWORKORDER.NOTES
FROM AWORKORDER
LEFT JOIN AWORKORDERITEM ON AWORKORDER.ID = AWORKORDERITEM.WORKORDERID
LEFT JOIN AWORKORDERITEMSCHEDULEDUSER ON AWORKORDERITEM.ID = AWORKORDERITEMSCHEDULEDUSER.WORKORDERITEMID
LEFT JOIN AWORKORDERSTATUS ON (AWORKORDER.LASTSTATUSID = AWORKORDERSTATUS.ID)
LEFT JOIN ACUSTOMER ON (AWORKORDER.CUSTOMERID = ACUSTOMER.ID)
WHERE (LASTSTATUSID IS NULL OR AWORKORDERSTATUS.COMPLETED = FALSE) and aworkorder.completebydate < now()
AND AWORKORDERITEMSCHEDULEDUSER.userID = 10
ORDER BY AWORKORDER.ID ASC
* LIST overdue workorders list not user centric available to service manager roles
criteria:
tags wo, woitem
LINE/BAR Count of work orders created per day over time (from case 1882)
criteria:
timespan and INTERVAL
tags wo
BAR % wo completed status vs not completed by completed date within interval
query is
all wo not completed that should be by now within the interval vs all that were completed within the interval, count up each, count up the total and present as a pct for that interval