Skip to content

Commit

Permalink
Merge pull request #87 from openimis/fix-null-sum_premiums
Browse files Browse the repository at this point in the history
Fix null sum premiums
  • Loading branch information
delcroip authored Dec 13, 2023
2 parents 1b505ae + f9277de commit 46a318b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_query_sum_premium(photo=False):
def sum_premiums(self, photo = False):
return Policy.objects.filter(id=self.id).aggregate(
sum_premiums=Policy.get_query_sum_premium(photo)
)['sum_premiums']
)['sum_premiums'] or 0

def claim_ded_rems(self):
return self.claim_ded_rems
Expand Down

0 comments on commit 46a318b

Please sign in to comment.