{% load static %}

Payment History

{% for invoice in customer.invoices.all %} {% empty %} {% 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 %}