{% extends 'django_ledger/layouts/content_layout_1.html' %} {% load i18n %} {% load static %} {% load django_ledger %} {% block view_content %}
{% include 'django_ledger/invoice/includes/card_invoice.html' with invoice=invoice entity_slug=view.kwargs.entity_slug style='invoice-detail' %}
{% include 'django_ledger/customer/includes/card_customer.html' with customer=invoice.customer %}

{% icon 'grommet-icons:transaction' 36 %} {% trans 'Invoice Items' %}

{# todo: make this table a template... #}
{% for invoice_item in itemtxs_qs %} {% endfor %}
{% trans 'Item' %} {% trans 'Unit Cost' %} {% trans 'Quantity' %} {% trans 'Total' %}
{{ invoice_item.item_model }} {% currency_symbol %}{{ invoice_item.unit_cost | currency_format }} {{ invoice_item.quantity }} {% currency_symbol %}{{ invoice_item.total_amount | currency_format }}
{% trans 'Total' %} {% currency_symbol %}{{ total_amount_due | currency_format }}
{% if invoice.is_active %} {% endif %}

{% icon 'grommet-icons:transaction' 36 %} {% trans 'Invoice Transactions' %}

{% transactions_table invoice %}
{% include 'django_ledger/includes/card_markdown.html' with style='card_1' title='Invoice Notes' notes_html=invoice.notes_html %}
{% endblock %}