{% load static %}

Payment History

{% if customer.invoices.all %} {% for invoice in customer.invoices.all %} {% endfor %}
Transaction ID Date Amount
#{{ invoice.id }} {{ invoice.date|date:"M d" }} {% if invoice.paid and invoice.total > 0 %}

Paid ${{ invoice.total|floatformat:"2" }}

{% endif %} {% if invoice.paid and invoice.total < 0 %}

Credit ${{ invoice.total|floatformat:"2" }}

{% endif %}
{% else %}

You have not made any payments yet.

{% endif %}