Compare commits

..

No commits in common. "d7ec842625d2135a504df812b5fb370ad988b081" and "02af67d907a7c1e0f80cac3858ead4408e6e755e" have entirely different histories.

View File

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