{% extends 'django_ledger/layouts/content_layout_1.html' %} {% load i18n %} {% load static %} {% load django_ledger %} {% block view_content %}
{% include 'django_ledger/vendor/includes/card_vendor.html' with vendor=bill_model.vendor %}
{% include 'django_ledger/bills/includes/card_bill.html' with bill=bill_model style='bill-detail' entity_slug=view.kwargs.entity_slug %}
{% csrf_token %} {{ form }} {% trans 'Back to Bill Detail' %} {% trans 'Bill List' %} {% trans 'Go To Dashboard' %}
{% bill_item_formset_table itemtxs_formset %}
{% if bill_model.is_configured %}

{% trans 'Bill State' %}

{% trans 'Bill State' %}

{{ bill_model.cash_account }}: {% currency_symbol %}{{ bill_model.get_amount_cash | currency_format }}

{{ bill_model.prepaid_account }}: {% currency_symbol %}{{ bill_model.get_amount_prepaid | currency_format }}

{{ bill_model.unearned_account }}: {% currency_symbol %}{{ bill_model.get_amount_unearned | currency_format }}

{% trans 'Ledger State' %}

{{ bill_model.cash_account }}: {% currency_symbol %}{{ bill_model.amount_paid | currency_format }}

{{ bill_model.prepaid_account }}: {% currency_symbol %}{{ bill_model.amount_receivable | currency_format }}

{{ bill_model.unearned_account }}: {% currency_symbol %}{{ bill_model.amount_unearned | currency_format }}

{% now "Y" as current_year %} {% now "m" as current_month %}
{% else %}

{% trans 'Bill Configuration' %}

{{ form.cash_account }}
{{ form.prepaid_account }}
{{ form.unearned_account }}
{% endif %}
{% endblock %}