You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "leaves period" in my company is from June, 1st to May, 31st. When I go to the overlapping diagnostics panel, all the leaves starting before June, 1st are shown, even if they end before the May, 31st.
The reason is that the SQL query which is used to show the overlapping leaves is broken:
SELECT CONCAT(users.firstname, '', users.lastname) AS user_label,
contracts.idAS contract_id, contracts.nameAS contract_label,
status.nameAS status_label,
leaves.*,
REPLACE(contracts.startentdate, '/', '-')
FROM leaves
inner join users onleaves.employee=users.idinner join contracts onusers.contract=contracts.idinner join status onstatus.id=leaves.statusWHEREleaves.startdate< CAST(CONCAT(YEAR(leaves.enddate), '-', REPLACE(contracts.startentdate, '/', '-')) ASDATE)
ORDER BYusers.idASC, leaves.startdateDESC
I.e., it checks whether the start date of the leaves begins after the period starting in the current year, which is not at all what we want...
The text was updated successfully, but these errors were encountered:
The "leaves period" in my company is from June, 1st to May, 31st. When I go to the overlapping diagnostics panel, all the leaves starting before June, 1st are shown, even if they end before the May, 31st.
The reason is that the SQL query which is used to show the overlapping leaves is broken:
I.e., it checks whether the start date of the leaves begins after the period starting in the current year, which is not at all what we want...
The text was updated successfully, but these errors were encountered: