Repository navigation
switch over to "absences reduce the expected working-time" #338
|
First: Thank You very much for implementing this option, see kimai/kimai#5054. Is there an easier / recommended way of changing the option, but keeping also the locked times intact? Thank You! |
Replies: 2 comments 11 replies
What do you mean by that? |
|
So, I have changed these settings and corrected everything in the database. This affected the entries of the query: SELECT
kwt.*
FROM
kimaidb.kimai2_working_times AS kwt
WHERE
(
EXISTS (
SELECT 1
FROM kimaidb.kimai2_absence AS ka
WHERE kwt.date = ka.date
AND kwt.user_id = ka.user_id
AND ka.type != "time_off"
)
OR EXISTS (
SELECT 1
FROM kimaidb.kimai2_public_holiday AS kp
WHERE kwt.date = kp.date
)
)
AND (kwt.expected != 0 OR kwt.actual != 0)
ORDER BY
kwt.user_id, kwt.date;...in which I manually (for security reasons) substracted the value of |
So, I have changed these settings and corrected everything in the database. This affected the entries of the query:
...in which I manually (for security reasons) substracted the value…