Default FTE to 100% in case there is no position provided

This commit is contained in:
2025-07-11 10:03:53 +02:00
parent 2b8f26e9fe
commit d7e2b69dd0

View File

@@ -63,7 +63,7 @@ joined_data AS (
COALESCE(d.path::ltree, d2.path::ltree) AS employment_department_path, COALESCE(d.path::ltree, d2.path::ltree) AS employment_department_path,
NULL::VARCHAR(254) AS email, NULL::VARCHAR(254) AS email,
NULL::DATE AS employment_earliest_retirement_date, NULL::DATE AS employment_earliest_retirement_date,
ROUND(p.fte_utilized_by_employee_in_this_position * 100)::INTEGER AS employment_fte_percentage, COALESCE(ROUND(p.fte_utilized_by_employee_in_this_position * 100)::INTEGER, 100) AS employment_fte_percentage,
NULL::INTEGER AS salary_hay_grade, NULL::INTEGER AS salary_hay_grade,
NULL::VARCHAR(3) AS salary_currency, NULL::VARCHAR(3) AS salary_currency,
NULL::INTEGER AS salary_yearly_gross_fixed, NULL::INTEGER AS salary_yearly_gross_fixed,