{% extends 'base.html' %} {% load i18n %} {% load static %} {% load django_ledger %} {% load custom_filters %} {% load tenhal_tag %} {% block title %}{% trans "Bill Details" %}{% 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' %}
{% if bill.is_configured %}
{% trans 'Cash Account' %}: {% if bill.cash_account %} {{ bill.cash_account.code }} {% else %} {{ bill.cash_account.code }} {% endif %}

{{ bill.get_amount_cash | absolute | currency_format }}

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

{{ bill.get_amount_prepaid | currency_format }}

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

{{ bill.get_amount_unearned | currency_format }}

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

{{ bill.get_amount_earned | currency_format }}

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

{{ 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' %} {{ total_amount__sum | currency_format }}
{% trans 'Bill Transactions' %}
{% transactions_table bill %}
{% include "bill/includes/mark_as.html" %} {% endblock %}