Skip to content

Commit

Permalink
fix: only include alteration amounts more than 20€
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Oct 28, 2024
1 parent c839492 commit feeb0a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit feeb0a9

Please sign in to comment.