Compare commits

...

2 Commits

Author SHA1 Message Date
d7ec842625 Merge pull request 'HOTFIX' (#355) from master into Docker
Reviewed-on: SGD-Nord/konova#355
2023-11-07 16:27:11 +01:00
c7958d1ebf HOTFIX
* fixes bug on saving eco account with missing deductable surface value
2023-11-07 16:23:57 +01:00

View File

@ -175,7 +175,7 @@ class EditEcoAccountForm(NewEcoAccountForm):
def is_valid(self):
valid = super().is_valid()
deductable_surface = self.cleaned_data.get("surface")
deductable_surface = self.cleaned_data.get("surface") or 0.0
deduction_surface_sum = self.instance.get_deductions_surface()
if deductable_surface < deduction_surface_sum:
self.add_error(