{% load django_ledger %} {% load i18n %} {% if not create_bill %} {% if style == 'dashboard' %}

{% icon "ri:bill-line" 16 %} {% trans 'Bill' %}

{{ bill.vendor.vendor_name }}

{{ bill.vendor.address_1 }}

{% if not bill.is_past_due %}

Due in: {{ bill.due_date | timeuntil }}

{% else %}

Past Due: {{ bill.due_date | timesince }} ago

{% endif %} {% if bill.progressible %}

Is Progressible: {% icon 'ant-design:check-circle-filled' 24 %} {% else %}

Is Progressible: {% 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 }}


{{ bill.get_progress | percentage }} {# MARK AS PAID MODAL #} {% mark_as_paid bill %}
{% elif style == 'bill-detail' %}

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

{% if bill.paid %}

Is Paid {% icon 'ant-design:check-circle-filled' 48 %}

Amount Paid: {% currency_symbol %}{{ bill.amount_paid | currency_format }}

{% else %}

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

{% if not bill.is_past_due %}

Due in: {{ bill.due_date | timeuntil }}

{% else %}

Past Due: {{ bill.due_date | timesince }} ago

{% endif %}

You Still Owe: {% currency_symbol %}{{ bill.get_amount_open | currency_format }}

{% if bill.progressible %}

Is Progressible: {% icon 'ant-design:check-circle-filled' 24 %}

{% else %}

Is Progressible: {% icon 'maki:roadblock-11' 24 %}

{% endif %}

Amount Paid: {% currency_symbol %}{{ bill.amount_paid | currency_format }}

Progressed: {{ bill.get_progress | percentage }}


{{ bill.get_progress | percentage }} {% endif %} {# MARK AS PAID MODAL #} {% mark_as_paid bill %}
{% endif %} {% else %}
{% icon "ic:baseline-add-circle-outline" 48 %}

{% trans 'New Bill' %}

{% endif %}