{% 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 }}


{{ invoice.get_progress | percentage }} {% modal_action invoice 'get' entity_slug %}#}
{% elif style == 'invoice-detail' %}

{% icon 'uil:bill' 36 %} {% trans 'Invoice Info' %}

{% if invoice.is_draft %}

{% trans 'This invoice is' %} {{ invoice.get_invoice_status_display }}

{% 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 'This invoice is' %} {{ invoice.get_invoice_status_display }}

{% 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 'This invoice is' %} {{ invoice.get_invoice_status_display }}

{% 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 }}


{{ invoice.get_progress | percentage }} {% elif invoice.is_paid %}

{% trans 'This invoice is' %} {{ invoice.get_invoice_status_display }}

{% 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 %}
{% endif %} {% else %}
{% icon "ic:baseline-add-circle-outline" 48 %}

{% trans 'New Invoice' %}

{% endif %}