diff --git a/RIGS/finance.py b/RIGS/finance.py index 0f6f8fbf..70c723c3 100644 --- a/RIGS/finance.py +++ b/RIGS/finance.py @@ -55,7 +55,13 @@ class InvoiceDetail(generic.DetailView): def get_context_data(self, **kwargs): context = super(InvoiceDetail, self).get_context_data(**kwargs) - context['page_title'] = "Invoice {} ({})".format(self.object.display_id, self.object.invoice_date.strftime("%d/%m/%Y")) + context['page_title'] = "Invoice {} ({}) ".format(self.object.display_id, self.object.invoice_date.strftime("%d/%m/%Y")) + if self.object.void: + context['page_title'] += "VOID" + elif self.object.is_closed: + context['page_title'] += "PAID" + else: + context['page_title'] += "OUTSTANDING" return context diff --git a/RIGS/templates/event_detail.html b/RIGS/templates/event_detail.html index d9182e3d..a5b6ecb3 100644 --- a/RIGS/templates/event_detail.html +++ b/RIGS/templates/event_detail.html @@ -1,6 +1,4 @@ {% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %} -{% load linkornone from filters %} -{% load namewithnotes from filters %} {% block content %}