From feeb0a942b9b7cef41c7841dd94ee9d8f0ac06df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Riku=20Kestila=CC=88?= Date: Fri, 18 Oct 2024 10:04:46 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20only=20include=20alteration=20amounts=20?= =?UTF-8?q?more=20than=2020=E2=82=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../applications/services/applications_power_bi_csv_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/benefit/applications/services/applications_power_bi_csv_report.py b/backend/benefit/applications/services/applications_power_bi_csv_report.py index 5d57823021..2ffe36319d 100644 --- a/backend/benefit/applications/services/applications_power_bi_csv_report.py +++ b/backend/benefit/applications/services/applications_power_bi_csv_report.py @@ -32,7 +32,8 @@ def get_completed_in_talpa_date( def get_alteration_amount(self, application: Application) -> float: sum = 0 for alteration in application.alteration_set.all(): - if alteration.recovery_amount: + # Only include alterations with recovery amount over 20€ + if alteration.recovery_amount and alteration.recovery_amount > 20: sum += alteration.recovery_amount return sum