mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-28 02:42:17 +00:00
Fixed waiting invoice counter - closes #239
This commit is contained in:
@@ -112,6 +112,7 @@ class InvoiceWaiting(generic.ListView):
|
|||||||
for obj in self.get_objects():
|
for obj in self.get_objects():
|
||||||
total += obj.sum_total
|
total += obj.sum_total
|
||||||
context['total'] = total
|
context['total'] = total
|
||||||
|
context['count'] = len(self.get_objects())
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<h2>Events for Invoice ({{object_list|length}} Events, £ {{ total|floatformat:2 }})</h2>
|
<h2>Events for Invoice ({{count}} Events, £ {{ total|floatformat:2 }})</h2>
|
||||||
<p>These events have happened, but paperwork has not yet been sent to treasury</p>
|
<p>These events have happened, but paperwork has not yet been sent to treasury</p>
|
||||||
{% if is_paginated %}
|
{% if is_paginated %}
|
||||||
<div class="col-md-6 col-md-offset-6 col-sm-12 text-right">
|
<div class="col-md-6 col-md-offset-6 col-sm-12 text-right">
|
||||||
|
|||||||
Reference in New Issue
Block a user