{% load django_ledger %} {% load i18n %}
{% if not create_bill %} {% if style == 'dashboard' %}
{% trans 'Bill' %}
{{ bill.get_bill_status_display }}

{{ bill.vendor.vendor_name }}

{{ 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 'Accrued' %}: {% if bill.accrue %} {% else %} {% 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 }}

{% modal_action bill 'get' entity_slug %}
{% trans 'View' %} {% if perms.django_ledger.change_billmodel %} {% trans 'Update' %} {% if bill.can_pay %} {% endif %} {% if bill.can_cancel %} {% endif %} {% endif %}
{% elif style == 'bill-detail' %}

{% trans 'Bill' %} {{ bill.bill_number }}

{% trans 'Back to Bill List' %}
{% if bill.is_draft %}

{% trans 'This bill is' %} {{ bill.get_bill_status_display }}

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

{% elif bill.is_review %}

{% trans 'This bill is' %} {{ bill.get_bill_status_display }}

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

{% if bill.xref %}

{% trans 'External Ref' %}: {{ bill.xref }}

{% endif %} {% elif bill.is_approved %}

{% trans 'This bill is' %} {{ bill.get_bill_status_display }}

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

{% if bill.xref %}

{% trans 'External Ref' %}: {{ bill.xref }}

{% endif %} {% elif bill.is_paid %}

{% trans 'This bill is' %} {{ bill.get_bill_status_display }}

{% trans 'Vendor Name' %}: {{ bill.vendor.vendor_name }}

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

{% trans 'Bill Amount' %}: {% currency_symbol %}{{ bill.amount_due | currency_format }}

{{ bill.get_bill_status_display | upper }}

{% endif %}
{% endif %} {% else %} {% if perms.django_ledger.add_billmodel %}
{% endif %} {% endif %}