Compare commits

..

No commits in common. "57b734f1c236ca98128f892db7311cba87a97a87" and "028efb3023922968091351ba4b41726a2b20864d" have entirely different histories.

View File

@ -91,9 +91,8 @@ class EcoAccountQualityChecker(CompensationQualityChecker):
Returns: Returns:
""" """
surface = self.obj.deductable_surface or 0 surface = self.obj.deductable_surface
is_surface_invalid = surface == 0 if surface is None or 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: