finance/models: fix overview for independent statements

pull/73/head
Christian Merten 1 year ago
parent 92e77e8b3c
commit 31a7f977dd
Signed by: christian.merten
GPG Key ID: D953D69721B948B3

@ -188,7 +188,7 @@ class Statement(CommonModel):
# excursion specific # excursion specific
if self.excursion is None: if self.excursion is None:
return return True
for yl in self.excursion.jugendleiter.all(): for yl in self.excursion.jugendleiter.all():
ref = _("Compensation for %(excu)s") % {'excu': self.excursion.name} ref = _("Compensation for %(excu)s") % {'excu': self.excursion.name}
@ -348,7 +348,9 @@ class Statement(CommonModel):
'total_per_yl': self.total_per_yl, 'total_per_yl': self.total_per_yl,
'total_staff': self.total_staff, 'total_staff': self.total_staff,
} }
return dict(context, **excursion_context) return dict(context, **excursion_context)
else:
return context
def grouped_bills(self): def grouped_bills(self):
return self.bill_set.values('short_description')\ return self.bill_set.values('short_description')\

Loading…
Cancel
Save