Skip to content
Discussion options

You must be logged in to vote

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…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@pkoevesdi
Comment options

@kevinpapst
Comment options

@pkoevesdi
Comment options

@kevinpapst
Comment options

@pkoevesdi
Comment options

Comment options

You must be logged in to vote
1 reply
@kevinpapst
Comment options

Answer selected by kevinpapst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
working times Contract / Working times plugin
2 participants