From: Michael Wagner Date: Mon, 31 Mar 2025 16:47:34 +0000 (+0200) Subject: pydev-s6git X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/SVBaL.git/commitdiff_plain/880fbbb3d52d195a2f3cfbbfcb45d07c1fb4f04a pydev-s6git --- diff --git a/python/eh_util/eh_app/AWK/routines.py b/python/eh_util/eh_app/AWK/routines.py index c608328..e68b74a 100644 --- a/python/eh_util/eh_app/AWK/routines.py +++ b/python/eh_util/eh_app/AWK/routines.py @@ -55,11 +55,11 @@ def erstelle_ehmeldung(data): can.drawString(205, 500, versichertes_object) can.drawString(193, 466, str(data["AnzahlWohnungen"])) if data["Selbstgenutzt"]: - can.drawString(350, 466, "X") + can.drawString(360, 466, "X") if data["Eigentumswohnung"]: - can.drawString(188, 449, "X") + can.drawString(192, 449, "X") if data["Gewerblich"]: - can.drawString(350, 449, "X") + can.drawString(360, 449, "X") can.drawString(140, 376, date.today().strftime('%d.%m.%Y')) can.drawString(350, 376, "Maschinell erstellt.") diff --git a/python/eh_util/eh_app/forms.py b/python/eh_util/eh_app/forms.py index 0b71c69..bf19011 100644 --- a/python/eh_util/eh_app/forms.py +++ b/python/eh_util/eh_app/forms.py @@ -25,13 +25,13 @@ https://docs.djangoproject.com/en/2.2/ref/forms/fields/ ''' class KassenbriefForm(forms.Form): #briefpapier = forms.FileField(label='Briefpapier ändern:', required=False) - template = forms.ChoiceField(choices=[('AB', 'ab'),('BC','bc')]) + template = forms.ChoiceField(choices=()) basisbeitrag = forms.IntegerField() zusatzbeitrag = forms.IntegerField(label="Beitrag für Zusatzgrundstück") def __init__(self, *args, templates=[('AB', 'ab'),('BC','bc')], **kwargs): - self.templates = templates - KassenbriefForm.template = forms.ChoiceField(choices=templates) + #self.templates = templates super().__init__(*args, **kwargs) + self.fields['template'].choices = templates class EhmeldungForm(forms.Form): VorZuname = forms.CharField(