{% extends 'django_ledger/layouts/content_layout_1.html' %} {% load i18n %} {% load static %} {% load django_ledger %} {% block view_content %}
{% include 'django_ledger/bills/includes/card_bill.html' with bill=bill entity_slug=view.kwargs.entity_slug style='bill-detail' %}
{% include 'django_ledger/vendor/includes/card_vendor.html' with vendor=bill.vendor %}
{% if bill.is_configured %}
{% endif %}

{% icon 'grommet-icons:transaction' 36 %} {% 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 %} {% currency_symbol %}{{ bill_item.unit_cost | currency_format }} {{ bill_item.quantity }} {% currency_symbol %}{{ bill_item.total_amount | currency_format }} {% if bill_item.po_model_id %} {% trans 'View PO' %} {% endif %}
{% trans 'Total' %} {% currency_symbol %}{{ total_amount__sum | currency_format }}
{% if bill.is_active %} {% endif %}

{% icon 'grommet-icons:transaction' 36 %} {% trans 'Bill Transactions' %}

{% transactions_table bill %}
{% include 'django_ledger/includes/card_markdown.html' with style='card_1' title='Bill Notes' notes_html=bill.notes_html %}
{% endblock %}