{% load django_ledger %} {% load i18n %} {% if not create_invoice %} {% if style == 'dashboard' %}
{% icon "bi:cash-stack" 16 %} {% trans 'Invoice' %}
{{ invoice.customer.customer_name }}
{{ invoice.customer.address_1 }}
{% if not invoice.is_past_due %}{% trans 'Due in' %}: {{ invoice.date_due | timeuntil }}
{% else %}Past Due: {{ invoice.date_due | timesince }} ago
{% endif %} {% if invoice.accrue %}Accrue: {% icon 'ant-design:check-circle-filled' 24 %} {% else %}
Accrue: {% icon 'maki:roadblock-11' 24 %} {% endif %}
Owed to You: {% currency_symbol %}{{ invoice.get_amount_open | currency_format }}
Amount Paid: {% currency_symbol %}{{ invoice.amount_paid | currency_format }}
Progressed: {{ invoice.get_progress | percentage }}
{% trans 'Amount Due' %}: {% currency_symbol %}{{ invoice.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ invoice.date_due | timeuntil }}
{% trans 'Is Accrued' %}: {% if invoice.accrue %} {% icon 'ant-design:check-circle-filled' 24 %} {% else %} {% icon 'maki:roadblock-11' 24 %} {% endif %}
{% elif invoice.is_review %}{% trans 'Amount Due' %}: {% currency_symbol %}{{ invoice.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ invoice.date_due | timeuntil }}
{% trans 'Is Accrued' %}: {% if invoice.accrue %} {% icon 'ant-design:check-circle-filled' 24 %} {% else %} {% icon 'maki:roadblock-11' 24 %} {% endif %}
{% if invoice.xref %}{% trans 'External Ref' %}: {{ invoice.xref }}
{% endif %} {% elif invoice.is_approved %}{% trans 'Amount Due' %}: {% currency_symbol %}{{ invoice.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ invoice.date_due | timeuntil }}
{% trans 'Is Accrued' %}: {% if invoice.accrue %} {% icon 'ant-design:check-circle-filled' 24 %} {% else %} {% icon 'maki:roadblock-11' 24 %} {% endif %}
{% trans 'Amount Paid' %}: {% currency_symbol %}{{ invoice.amount_paid | currency_format }}
{% trans 'Progressed' %}: {{ invoice.get_progress | percentage }}
{% trans 'Amount Paid' %}: {% currency_symbol %}{{ invoice.amount_paid | currency_format }}
{% trans 'Paid Date' %}: {{ invoice.date_paid | date }} {% else %}
Invoice Amount: {% currency_symbol %}{{ invoice.amount_due | currency_format }}
{{ invoice.get_invoice_status_display | upper }}
{% endif %}