{# charity_report.html #} {% extends "base.html" %} {% comment %} template parameters: outstanding: float payments: List[CharityPaymentRecord] responses: List[ClinicianResponse] total_due: float total_paid: float {% endcomment %} {% block content %}

Charity report

Totals

Total of payments due to charity: {{ total_due }}

Total of payments made: {{ total_paid }}

Outstanding due: {{ outstanding }}

Payments to charity

{% for payment in payments %} {% endfor %}
Created at Payee Amount
{{ payment.created_at }} {{ payment.payee }} {{ payment.amount }}

Clinician responses

{% for clinician_response in responses %} {% endfor %}
Created at Clinician response ID Contact request ID Study ID Amount due
{{ clinician_response.created_at }} {{ clinician_response.id }} {{ clinician_response.contact_request.id }} {{ clinician_response.study.id }} {{ clinician_response.charity_amount_due }}
{% endblock %}