diff --git a/src/writer.py b/src/writer.py index 9c576e1..7f76c88 100644 --- a/src/writer.py +++ b/src/writer.py @@ -67,7 +67,11 @@ def _get_field_value(record: EmployeeRecord, employee_name: str, source_field: s if source_field == "Monat (MM.JJ)": return _format_month_for_template(record.monat) elif source_field == "Stellenanteil in %": - return record.stellenanteil + try: + value = int(float(str(record.stellenanteil).strip())) + return f"{value},00" + except (ValueError, TypeError): + return str(record.stellenanteil) elif source_field == "Name": return employee_name elif source_field == "Antragsnummer":