# 342 Fix
* fixes bug where rounding error on aggregated db SUM() would occur * simplifies code base
This commit is contained in:
@@ -95,7 +95,7 @@ class EcoAccountQualityChecker(CompensationQualityChecker):
|
||||
is_surface_invalid = surface == 0
|
||||
if is_surface_invalid:
|
||||
self._add_missing_attr_name(_("Available Surface"))
|
||||
after_state_surface = self.obj.get_state_after_surface_sum()
|
||||
after_state_surface = self.obj.get_surface_after_states()
|
||||
if surface > after_state_surface:
|
||||
self.messages.append(
|
||||
_("Deductable surface can not be larger than state surface")
|
||||
|
||||
Reference in New Issue
Block a user