Compare commits

..

2 Commits

Author SHA1 Message Date
e9627e69fd
Mark entries with high utilization in workload overview report
That makes spotting over-utilization easier.
2024-10-03 10:32:42 +02:00
ca1b3613f9
Add simple computation of utilization to workload overview report
This way, it should be easier to spot days where utilzation is too high
to take any more work.
2024-10-03 10:32:29 +02:00

View File

@ -821,7 +821,13 @@ PARAMS is a property list of the following parameters:
(* (cl-incf days) (* (cl-incf days)
(org-duration-to-minutes work-hours))) (org-duration-to-minutes work-hours)))
100))) 100)))
(insert (format "| [%s] | %s | %.2f%% |\n" interval-end-date total-time utilization)))))) (insert (format "| [%s] | %s | %s |\n"
interval-end-date
total-time
(if (<= 80 utilization)
;; When utilization is above 80%, mark entry in bold
(format "*%.2f%%*" utilization)
(format "%.2f%%" utilization))))))))
(insert "|--|") (insert "|--|")
(org-table-align))) (org-table-align)))