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

{% trans 'Bill Items' %}

{% csrf_token %} {{ item_formset.non_form_errors }} {{ item_formset.management_form }} {% for f in item_formset %} {% endfor %}
{% trans 'Item' %} {% trans 'PO Qty' %} {% trans 'PO Amount' %} {% trans 'Quantity' %} {% trans 'Unit Cost' %} {% trans 'Unit' %} {% trans 'Total' %} {% trans 'Delete' %}
{% for hidden_field in f.hidden_fields %} {{ hidden_field }} {% endfor %} {{ f.item_model }} {% if f.errors %} {{ f.errors }} {% endif %} {% if f.instance.po_quantity %}{{ f.instance.po_quantity }}{% endif %} {% if f.instance.po_total_amount %}{% currency_symbol %} {{ f.instance.po_total_amount | currency_format }} {% trans 'View PO' %} {% endif %} {{ f.quantity }} {{ f.unit_cost }} {{ f.entity_unit }} {% currency_symbol %}{{ f.instance.total_amount | currency_format }} {% if item_formset.can_delete %} {{ f.DELETE }} {% endif %}
{% trans 'Total' %} {% currency_symbol %}{{ total_amount__sum | currency_format }}
{% if not item_formset.has_po %} {% trans 'New Item' %} {% endif %}