{% load django_ledger %} {% load i18n %}
{% icon "ri:bill-line" 16 %} {% trans 'Bill' %}
{{ bill.vendor.vendor_name }}
{{ bill.vendor.address_1 }}
{% if not bill.is_past_due %}{% trans 'Due in' %}: {{ bill.date_due | timeuntil }}
{% else %}Past Due: {{ bill.date_due | timesince }} ago
{% endif %} {% if bill.accrue %}Is Accrued: {% icon 'ant-design:check-circle-filled' 24 %} {% else %}
Accrue: {% icon 'maki:roadblock-11' 24 %} {% endif %}
You Still Owe: {% currency_symbol %}{{ bill.get_amount_open | currency_format }}
Amount Paid: {% currency_symbol %}{{ bill.amount_paid | currency_format }}
Progressed: {{ bill.get_progress | percentage }}
{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ bill.date_due | timeuntil }}
{% trans 'Is Accrued' %}: {% if bill.accrue %} {% icon 'ant-design:check-circle-filled' 24 %} {% else %} {% icon 'maki:roadblock-11' 24 %} {% endif %}
{% elif bill.is_review %}{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ bill.date_due | timeuntil }}
{% trans 'Is Accrued' %}: {% if bill.accrue %} {% icon 'ant-design:check-circle-filled' 24 %} {% else %} {% icon 'maki:roadblock-11' 24 %} {% endif %}
{% if bill.xref %}{% trans 'External Ref' %}: {{ bill.xref }}
{% endif %} {% elif bill.is_approved %}{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ bill.date_due | timeuntil }}
{% trans 'Is Accrued' %}: {% if bill.accrue %} {% icon 'ant-design:check-circle-filled' 24 %} {% else %} {% icon 'maki:roadblock-11' 24 %} {% endif %}
{% trans 'Amount Paid' %}: {% currency_symbol %}{{ bill.amount_paid | currency_format }}
{% trans 'Progressed' %}: {{ bill.get_progress | percentage }}
{% trans 'External Ref' %}: {{ bill.xref }}
{% endif %} {% elif bill.is_paid %}{% trans 'Amount Paid' %}: {% currency_symbol %}{{ bill.amount_paid | currency_format }}
{% trans 'Paid Date' %}: {{ bill.date_paid | date }} {% if bill.xref %}
{% trans 'External Ref' %}: {{ bill.xref }}
{% endif %} {% else %}Bill Amount: {% currency_symbol %}{{ bill.amount_due | currency_format }}
{{ bill.get_bill_status_display | upper }}
{% endif %}