{% load trans from i18n %} {% load django_ledger %}

{% trans 'Purchase Order Items' %}

{% csrf_token %} {{ itemtxs_formset.non_form_errors }} {{ itemtxs_formset.management_form }} {% if itemtxs_formset.can_delete %} {% endif %} {% for f in itemtxs_formset %} {% if itemtxs_formset.can_delete %} {% endif %} {% endfor %} {% if itemtxs_formset.can_delete %} {% endif %}
{% trans 'Item' %} {% trans 'Unit Cost' %} {% trans 'Quantity' %} {% trans 'Unit' %} {% trans 'Amount' %} {% trans 'Status' %}{% trans 'Delete' %}{% trans 'Create Bill' %} {% trans 'Bill Paid?' %}
{% for hidden_field in f.hidden_fields %} {{ hidden_field }} {% endfor %} {{ f.item_model }} {% if f.errors %} {{ f.errors }} {% endif %} {{ f.po_unit_cost }} {{ f.po_quantity }} {{ f.entity_unit }} {% currency_symbol %}{{ f.instance.po_total_amount | currency_format }} {{ f.po_item_status }} {{ f.DELETE }} {% if f.instance.can_create_bill %} {{ f.create_bill }} {% elif f.instance.bill_model %} {% trans 'View Bill' %} {# {% else %}#} {% endif %} {% if f.instance.bill_model %} {% if f.instance.bill_model.is_paid %} {% icon 'bi:check-circle-fill' 24 %} {% else %} {% icon 'clarity:no-access-solid' 24 %} {% endif %} {% endif %}
{% trans 'Total' %} {% currency_symbol %}{{ po_model.po_amount | currency_format }}
{% trans 'New Item' %}