{% load trans from i18n %} {% load currency_symbol from django_ledger %} {% load icon from django_ledger %} {% load custom_filters %} {% load widget_tweaks %}

{% 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|add_class:"form-control" }} {% if f.errors %}
{{ f.errors }}
{% endif %}
{{ f.po_unit_cost|add_class:"form-control" }} {{ f.po_quantity|add_class:"form-control" }} {{ f.entity_unit|add_class:"form-control" }} {% currency_symbol %}{{ f.instance.po_total_amount | currency_format }} {{ f.po_item_status|add_class:"form-control" }} {{ f.DELETE|add_class:"form-check-input" }} {% if f.instance.can_create_bill %} {{ f.create_bill|add_class:"form-check-input" }} {% elif f.instance.bill_model %} {% trans 'View Bill' %} {% 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 }}