{% extends 'base.html' %} {% load i18n %} {% load static %} {% load django_ledger %} {% load custom_filters %} {% block title %}Bill Details - {{ block.super }}{% endblock %} {% block customCSS %} {% endblock %} {% block content %}
{% include 'bill/includes/card_bill.html' with dealer_slug=request.dealer.slug bill=bill entity_slug=view.kwargs.entity_slug style='bill-detail' %}
{% include 'bill/includes/card_vendor.html' with vendor=bill.vendor %}
{% if bill.is_configured %}
{% trans 'Cash Account' %}: {{ bill.cash_account.code }}

{% currency_symbol %}{{ bill.get_amount_cash | absolute | currency_format }}

{% if bill.accrue %}
{% trans 'Prepaid Account' %}: {{ bill.prepaid_account.code }}

{% currency_symbol %}{{ bill.get_amount_prepaid | currency_format }}

{% trans 'Accounts Payable' %}: {{ bill.unearned_account.code }}

{% currency_symbol %}{{ bill.get_amount_unearned | currency_format }}

{% trans 'Accrued' %} {{ bill.get_progress | percentage }}

{% currency_symbol %}{{ bill.get_amount_earned | currency_format }}

{% else %}
{% trans 'You Still Owe' %}

{% currency_symbol %}{{ bill.get_amount_open | currency_format }}

{% endif %}
{% endif %}
{% trans 'Bill Items' %}
{% for bill_item in itemtxs_qs %} {% endfor %}
{% trans 'Item' %} {% trans 'Entity Unit' %} {% trans 'Unit Cost' %} {% trans 'Quantity' %} {% trans 'Total' %} {% trans 'PO' %}
{{ bill_item.item_model }}
{% if bill_item.entity_unit %} {{ bill_item.entity_unit }} {% endif %} {{ bill_item.unit_cost | currency_format }} {{ bill_item.quantity }} {{ bill_item.total_amount | currency_format }} {% if bill_item.po_model_id %} {% if perms.django_ledger.view_purchaseordermodel%} {% trans 'View PO' %} {% endif %} {% endif %}
{% trans 'Total' %} {% currency_symbol %}{{ total_amount__sum | currency_format }}
{% trans 'Bill Transactions' %}
{% transactions_table bill %}
{% trans 'Bill Notes' %}
{% if perms.django_ledger.change_billmodel%}
{% include 'bill/includes/card_markdown.html' with style='card_1' title='' notes_html=bill.notes_html %}
{% endif %}
{% include "bill/includes/mark_as.html" %} {% endblock %}