Merge pull request '#325 Fix' (#326) from 325_Error_on_ecoaccount_recording into master

Reviewed-on: SGD-Nord/konova#326
pull/327/head
mpeltriaux 1 year ago
commit 57b734f1c2

@ -91,8 +91,9 @@ class EcoAccountQualityChecker(CompensationQualityChecker):
Returns: Returns:
""" """
surface = self.obj.deductable_surface surface = self.obj.deductable_surface or 0
if surface is None or surface == 0: is_surface_invalid = surface == 0
if is_surface_invalid:
self._add_missing_attr_name(_("Available Surface")) self._add_missing_attr_name(_("Available Surface"))
after_state_surface = self.obj.get_state_after_surface_sum() after_state_surface = self.obj.get_state_after_surface_sum()
if surface > after_state_surface: if surface > after_state_surface:

Loading…
Cancel
Save