{% extends "base.html" %} {% load i18n %} {% block main %}

{% trans "cBOM download" %}

{% trans "Select a cBOM, that you can then download as BOM or cBOM csv file." %}

{% if object %}

{% blocktrans with description=object.description %} Contents of cBOM "{{ description }}" converted into a BOM {% endblocktrans %}

{% for item in bom_items %} {% endfor %}
{% trans "Position" %} {% trans "IPN" %} {% trans "Description" %} {% trans "QTY" %} {% trans "Unit" %} {% trans "Shape" %}
{{ item.position }} {{ item.ipn.code }} {{ item.ipn.name }} {{ item.qty }} {{ item.unit.code }} {{ item.ipn.shape.code }}

Download BOM.csv

{% trans "Content of the cBOM" %}

{% for item in object.cbomitems.all %} {% endfor %}
{% trans "Position" %} {% trans "EPN" %} {% trans "Description" %} {% trans "Quantity" %} {% trans "Unit" %} {% trans "Consign" %}
{{ item.position }} {{ item.epn.epn }} {{ item.epn.description }} {{ item.qty }} {{ item.unit.code }} {{ item.consign|add:0 }}

Download cBOM.csv

{% endif %}

{% trans "All cBOMs" %}

{% for cbom in cboms %} {% endfor %}
{% trans "Customer" %} {% trans "Description" %} {% trans "HTML link" %} {% trans "Product" %} {% trans "Version date" %}
{{ cbom.customer.description }} {{ cbom.description }} {{ cbom.html_link }} {{ cbom.product }} {{ cbom.version_date }}
{% endblock %}