fix: abstraction of bill calculation

MK/finance_workflow
mariusrklein 8 months ago
parent c6659e0032
commit 9bd2b42ba8

@ -282,7 +282,7 @@ class Statement(CommonModel):
@property @property
def total_bills(self): def total_bills(self):
return sum([bill.amount for bill in self.bill_set.all() if bill.costs_covered]) return sum([bill.amount for bill in self.bills_covered])
@property @property
def bills_covered(self): def bills_covered(self):

Loading…
Cancel
Save