Skip to content
Snippets Groups Projects
Commit 9b003ce9 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Add logging if number of FTEs don't add up

parent ff0050f1
Branches
Tags
1 merge request!6Feature/comp 125 staffing graph
......@@ -196,6 +196,17 @@ def transfer_staff_data():
).delete()
continue
employed = nren_info[Question.permanent_fte] + nren_info[Question.subcontracted_fte]
technical = nren_info[Question.technical_fte] + nren_info[Question.non_technical_fte]
if not math.isclose(
employed,
technical,
abs_tol=0.01,
):
logger.info(
f'{nren_name} FTE do not equal across employed/technical categories.'
f' ({employed} != {technical})')
staff_data = model.NrenStaff(
nren_id=nren_dict[nren_name].id,
year=2022,
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment