{% extends "base.html" %} {% load static erp_tags %} {% block title %}Invoice {{ invoice.invoice_number }}{% endblock %} {% block chat_context %} {% endblock %} {% block content %} {# Header #}
Invoice
{% if customer %}{{ customer }} · {% endif %} Order {{ order.order_number }} · Invoiced {{ invoice.invoice_date|date:"M j, Y" }}{% if invoice.due_date %} · Due {{ invoice.due_date|date:"M j, Y" }}{% endif %}
{{ invoice.get_status_display }}| Payment | Date | Type | Method | Reference | Status | Amount |
|---|---|---|---|---|---|---|
| {{ p.payment_number }} | {{ p.payment_date|date:"M j, Y" }} | {{ p.get_payment_type_display }}{% if p.parent_payment_id %} of {{ p.parent_payment.payment_number }}{% endif %} | {{ p.get_payment_method_display }} | {% if p.payment_type == "refund" %}{{ p.refund_reason|default:"—" }}{% else %}{{ p.transaction_id|default:"—" }}{% endif %} | {{ p.get_status_display }} | {% if p.payment_type == "refund" %}({{ p.amount|money:p.currency }}){% else %}{{ p.amount|money:p.currency }}{% endif %} |
No payments recorded yet.
{% endif %}This invoice is {{ invoice.get_status_display|lower }}; nothing can be recorded against it.
{% else %}Paid in full{% if invoice.paid_date %} on {{ invoice.paid_date|date:"M j, Y" }}{% endif %}.
{% endif %}Refunded in full: {{ refunded_total|money:order.currency }}.
{% else %}Nothing to refund: no settled payment on this invoice.
{% endif %}