{% extends 'django_ledger/layouts/content_layout_1.html' %} {% load i18n %} {% load static %} {% load django_ledger %} {% block view_content %}
{% if form.errors %}{{ form.errors }}{% endif %} {% csrf_token %}
{% include 'django_ledger/includes/card_vendor.html' with vendor=bill.vendor %}

{% trans 'Bill Amount & Terms' %}

Bill Amount: ${{ bill.amount_due | currency_format }}

Bill Date: {{ bill.date }}

Terms: {{ bill.get_terms_display }}

External Reference: {{ bill.xref }}

Accrue Bill: {{ form.accrue }}

{% trans 'Bill State' %}

{% csrf_token %}
{{ form.amount_paid }}
{{ form.paid_date }}
{{ form.progress }}
{% trans 'Bill List' %} {% trans 'Dashboard' %}
{% if bill.is_configured %}

{% trans 'Bill State' %}

{% trans 'Bill State' %}

{{ bill.cash_account }}: ${{ bill.get_amount_cash | currency_format }}

{{ bill.prepaid_account }}: ${{ bill.get_amount_receivable | currency_format }}

{{ bill.unearned_account }}: ${{ bill.get_amount_payable | currency_format }}

{{ bill.earnings_account }}: ${{ bill.get_amount_earned | currency_format }}

{% trans 'Ledger State' %}

{{ bill.cash_account }}: ${{ bill.amount_paid | currency_format }}

{{ bill.prepaid_account }}: ${{ bill.amount_receivable | currency_format }}

{{ bill.unearned_account }}: ${{ bill.amount_unearned | currency_format }}

{{ bill.earnings_account }}: ${{ bill.amount_earned | 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 %}
{% bill_item_formset_table item_formset %} {% endblock %}