HOTFIX
* fixes bug on saving eco account with missing deductable surface value
This commit is contained in:
parent
17de730c53
commit
2aaa39e3a6
@ -175,7 +175,7 @@ class EditEcoAccountForm(NewEcoAccountForm):
|
|||||||
def is_valid(self):
|
def is_valid(self):
|
||||||
valid = super().is_valid()
|
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()
|
deduction_surface_sum = self.instance.get_deductions_surface()
|
||||||
if deductable_surface < deduction_surface_sum:
|
if deductable_surface < deduction_surface_sum:
|
||||||
self.add_error(
|
self.add_error(
|
||||||
|
Loading…
Reference in New Issue
Block a user