Stelle Stellenanteil dezimal dar

This commit is contained in:
Rob committed 2026-06-30 15:05:12 +02:00
1 parent 8fde588b8f
commit fa3e99dec0
1 file changed
+5 -1
+5 -1
View File
@@ -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":