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

{% trans 'Estimate Items' %}

{% csrf_token %} {{ item_formset.non_form_errors }} {{ item_formset.management_form }} {% for f in item_formset %} {% endfor %}
{% trans 'Item' %} {% trans 'Quantity' %} {% trans 'Unit Cost' %} {% trans 'Unit Sales Price' %} {% trans 'Business Unit' %} {% trans 'Total Cost' %} {% trans 'Total Revenue' %} {% trans 'Delete' %}
{% for hidden_field in f.hidden_fields %} {{ hidden_field }} {% endfor %} {{ f.item_model }} {% if f.errors %} {{ f.errors }} {% endif %} {{ f.ce_quantity }} {{ f.ce_unit_cost_estimate }} {{ f.ce_unit_revenue_estimate }} {{ f.entity_unit }} {% currency_symbol %}{{ f.instance.ce_cost_estimate | currency_format }} {% currency_symbol %}{{ f.instance.ce_revenue_estimate | currency_format }} {% if item_formset.can_delete %} {{ f.DELETE }} {% endif %}
{% trans 'Total' %} {% currency_symbol %}{{ ce_cost_estimate__sum | currency_format }} {% currency_symbol %}{{ ce_revenue_estimate__sum | currency_format }}
{% if not item_formset.has_po %} {% trans 'New Item' %} {% endif %}