{% extends "order/order_wizard/po_upload.html" %} {% load inventree_extras %} {% load i18n %} {% load static %} {% load crispy_forms_tags %} {% block form_alert %} {% if form.errors %} {% endif %} {% if form_errors %} {% endif %} {% endblock form_alert %} {% block form_buttons_top %} {% if wizard.steps.prev %} {% endif %} {% endblock form_buttons_top %} {% block form_content %} {% trans "Row" %} {% trans "Select Supplier Part" %} {% trans "Quantity" %} {% for col in columns %} {% if col.guess != 'Quantity' %} {% if col.guess %} {{ col.guess }} {% else %} {{ col.name }} {% endif %} {% endif %} {% endfor %} {% comment %} Dummy row for javascript del_row method {% endcomment %} {% for row in rows %} {% add row.index 1 %} {% for field in form.visible_fields %} {% if field.name == row.item_select %} {{ field }} {% endif %} {% endfor %} {% if row.errors.part %}

{{ row.errors.part }}

{% endif %} {% for field in form.visible_fields %} {% if field.name == row.quantity %} {{ field|as_crispy_field }} {% endif %} {% endfor %} {% if row.errors.quantity %}

{{ row.errors.quantity }}

{% endif %} {% for item in row.data %} {% if item.column.guess != 'Quantity' %} {% if item.column.guess == 'Purchase_Price' %} {% for field in form.visible_fields %} {% if field.name == row.purchase_price %} {{ field|as_crispy_field }} {% endif %} {% endfor %} {% elif item.column.guess == 'Reference' %} {% for field in form.visible_fields %} {% if field.name == row.reference %} {{ field|as_crispy_field }} {% endif %} {% endfor %} {% elif item.column.guess == 'Notes' %} {% for field in form.visible_fields %} {% if field.name == row.notes %} {{ field|as_crispy_field }} {% endif %} {% endfor %} {% else %} {{ item.cell }} {% endif %} {% endif %} {% endfor %} {% endfor %} {% endblock form_content %} {% block form_buttons_bottom %} {% endblock form_buttons_bottom %} {% block js_ready %} {{ block.super }} $('.bomselect').select2({ width: '100%', matcher: partialMatcher, }); $('.currencyselect').select2({ dropdownAutoWidth: true, }); {% endblock js_ready %}