{% load django_ledger %} {% load i18n %}
{{ bill.vendor.address_1 }}
{% if not bill.is_past_due %}{% trans 'Due in' %}: {{ bill.date_due | timeuntil }}
{% else %}{% trans 'Past Due' %}: {{ bill.date_due | timesince }} {% trans 'ago' %}
{% endif %}{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.get_amount_open | currency_format }}
{% trans 'Amount Paid' %}: {% currency_symbol %}{{ bill.amount_paid | currency_format }}
{% trans 'Progress' %}: {{ bill.get_progress | percentage }}
{% trans 'Vendor Name' %}: {{ bill.vendor.vendor_name }}
{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ bill.date_due | timeuntil }}
{% trans 'Is Accrued' %}: {% if bill.accrue %} {% else %} {% endif %}
{% trans 'Vendor Name' %}: {{ bill.vendor.vendor_name }}
{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ bill.date_due | timeuntil }}
{% trans 'Is Accrued' %}: {% if bill.accrue %} {% else %} {% endif %}
{% trans 'External Ref' %}: {{ bill.xref }}
{% endif %} {% elif bill.is_approved %}{% trans 'Vendor Name' %}: {{ bill.vendor.vendor_name }}
{% trans 'Amount Due' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }}
{% trans 'Due Date' %}: {{ bill.date_due | timeuntil }}
{% trans 'Amount Paid' %}: {% currency_symbol %}{{ bill.amount_paid | currency_format }}
{% trans 'Progress' %}: {{ bill.get_progress | percentage }}
{% trans 'External Ref' %}: {{ bill.xref }}
{% endif %} {% elif bill.is_paid %}{% trans 'Vendor Name' %}: {{ bill.vendor.vendor_name }}
{% trans 'Amount Paid' %}: {% currency_symbol %}{{ bill.amount_paid | currency_format }}
{% trans 'Paid Date' %}: {{ bill.date_paid | date }}
{% trans 'External Ref' %}: {{ bill.xref }}
{% endif %} {% else %}{% trans 'Bill Amount' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }}
{{ bill.get_bill_status_display | upper }}