{% 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 %}
{% trans "Position" %} |
{% trans "IPN" %} |
{% trans "Description" %} |
{% trans "QTY" %} |
{% trans "Unit" %} |
{% trans "Shape" %} |
{% for item in bom_items %}
{{ item.position }} |
{{ item.ipn.code }} |
{{ item.ipn.name }} |
{{ item.qty }} |
{{ item.unit.code }} |
{{ item.ipn.shape.code }} |
{% endfor %}
Download BOM.csv
{% trans "Content of the cBOM" %}
{% trans "Position" %} |
{% trans "EPN" %} |
{% trans "Description" %} |
{% trans "Quantity" %} |
{% trans "Unit" %} |
{% trans "Consign" %} |
{% for item in object.cbomitems.all %}
{{ item.position }} |
{{ item.epn.epn }} |
{{ item.epn.description }} |
{{ item.qty }} |
{{ item.unit.code }} |
{{ item.consign|add:0 }} |
{% endfor %}
Download cBOM.csv
{% endif %}
{% trans "All cBOMs" %}
{% trans "Customer" %} |
{% trans "Description" %} |
{% trans "HTML link" %} |
{% trans "Product" %} |
{% trans "Version date" %} |
{% for cbom in cboms %}
{{ cbom.customer.description }} |
{{ cbom.description }} |
{{ cbom.html_link }} |
{{ cbom.product }} |
{{ cbom.version_date }} |
{% endfor %}
{% endblock %}