{% extends BASE_TEMPLATE %} {% load staticfiles %} {% load materializecss %} {% block head-title %}{{ title }}{% endblock %} {% block main %} {{ add_subpart_form.media }} {% endblock %} {% block menu %} {% endblock %} {% block content %}
{% if profile.role == 'A' %}

Add Subparts to BOM

To batch add subparts to an assembly BOM, select the parent part number and upload a csv that contains columns with the headers part_number or manufacturer_part_number, and a column with the header and quantity.

If specified, the part number must have been already created in IndaBOM. Similarly, if specified, the manufacturer part number must have been already created in IndaBOM.

Additional fields include 'reference' or 'designator' to add a reference field to the subpart; 'do_not_load' if you don't want the part loaded into the assembly that contains it; 'dnp' if you don't want to upload the part to IndaBOM at all (i.e., just skip over it).

{% csrf_token %}
Select Parent Part
{{ upload_bom_form.parent_part_number|materializecss:'m4 s12' }}
{% if parent_part %}
Go to {{ parent_part_number }}
{% endif %}
File {{ bom_csv_form.file }}
{{ bom_csv_form.file.errors }}

{% else %} {% include 'bom/nothing-to-see.html' with required_privilege='Admin' %} {% endif %}
{% endblock %} {% block script %} {% endblock %}