{% extends 'django_ledger/layouts/content_layout_1.html' %} {% load i18n %} {% load static %} {% load django_ledger %} {% block view_content %}
{% include 'django_ledger/customer/includes/card_customer.html' with customer=invoice.customer %}
{% include 'django_ledger/invoice/includes/card_invoice.html' with invoice=invoice style='invoice-detail' entity_slug=view.kwargs.entity_slug %}
{% csrf_token %} {{ form }} {% trans 'Back to Invoice Detail' %} {% trans 'Invoice List' %} {% trans 'Go To Dashboard' %}
{% invoice_item_formset_table itemtxs_formset %}
{% if invoice.is_configured %}

{% trans 'Invoice State' %}

{% trans 'Invoice State' %}

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

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

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

{% trans 'Ledger State' %}

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

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

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

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

{% trans 'Invoice Configuration' %}

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