# 342 Fix

* fixes bug where rounding error on aggregated db SUM() would occur
* simplifies code base
This commit is contained in:
2023-08-25 09:13:46 +02:00
parent 60b6968436
commit ad2f4c12f8
7 changed files with 16 additions and 25 deletions

View File

@@ -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")