From f43635ee89671083a4e2b64cda5a8027af39665f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sun, 29 May 2016 22:42:17 +0100 Subject: [PATCH] Added more useful information to the invoice tables --- RIGS/templates/RIGS/event_invoice.html | 29 +++++++++++++++++++------- RIGS/templates/RIGS/invoice_list.html | 12 ++++++++++- 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/RIGS/templates/RIGS/event_invoice.html b/RIGS/templates/RIGS/event_invoice.html index 3324911a..94d84f04 100644 --- a/RIGS/templates/RIGS/event_invoice.html +++ b/RIGS/templates/RIGS/event_invoice.html @@ -1,8 +1,18 @@ {% extends 'base.html' %} {% load paginator from filters %} +{% load static %} {% block title %}Events for Invoice{% endblock %} +{% block js %} + + +{% endblock %} + {% block content %}

Events for Invoice ({{object_list|length}} Events, £ {{ total|floatformat:2 }})

@@ -16,8 +26,8 @@ # - Date - Event + Start Date + Event Name Client Cost MIC @@ -40,8 +50,9 @@ danger {% endif %} "> - N{{ object.pk|stringformat:"05d" }} - {{ object.end_date }} + N{{ object.pk|stringformat:"05d" }}
+ {{ object.get_status_display }} + {{ object.start_date }} {{ object.name }} {% if object.organisation %} @@ -52,11 +63,15 @@ {{ object.sum_total|floatformat:2 }} - {{ object.mic.initials }}
- + {% if object.mic %} + {{ object.mic.initials }}
+ + {% else %} + + {% endif %} - + diff --git a/RIGS/templates/RIGS/invoice_list.html b/RIGS/templates/RIGS/invoice_list.html index 26ddeb12..cb63b7f5 100644 --- a/RIGS/templates/RIGS/invoice_list.html +++ b/RIGS/templates/RIGS/invoice_list.html @@ -17,6 +17,8 @@ # Event + Client + Event Date Invoice Date Balance @@ -26,7 +28,15 @@ {% for object in object_list %} {{ object.pk }} - N{{ object.event.pk|stringformat:"05d" }}: {{ object.event.name }} + N{{ object.event.pk|stringformat:"05d" }}: {{ object.event.name }}
+ {{ object.event.get_status_display }} + + {% if object.organisation %} + {{ object.event.organisation.name }} + {% else %} + {{ object.event.person.name }} + {% endif %} + {{ object.event.start_date }} {{ object.invoice_date }} {{ object.balance|floatformat:2 }}