{% import "helper.twig" as helper %} {{ form_start(form) }} {% for bom_entry in build_request.bomEntries %} {# 1st row basic infos about the BOM entry #} {% endfor %}
{% trans %}part.table.name{% endtrans %} {% trans %}project.bom.mountnames{% endtrans %} {% trans %}project.build.required_qty{% endtrans %}
{#
{% if bom_entry.part %} {{ bom_entry.part.name }} {% if bom_entry.name %}({{ bom_entry.name }}){% endif %} {% else %} {{ bom_entry.name }} {% endif %} {% for tag in bom_entry.mountnames|split(',') %} {{ tag | trim }} {% endfor %} {{ build_request.neededAmountForBOMEntry(bom_entry) | format_amount(bom_entry.part.partUnit ?? null) }} {% trans %}project.builds.needed{% endtrans %} (= {{ number_of_builds }} x {{ bom_entry.quantity | format_amount(bom_entry.part.partUnit ?? null) }})
{% set lots = build_request.partLotsForBOMEntry(bom_entry) %} {% if lots is not null %} {% for lot in lots %} {# @var lot \App\Entity\Parts\PartLot #}
{{ form_errors(form["lot_"~lot.id]) }} {{ form_widget(form["lot_"~lot.id]) }}
/ {{ lot.amount | format_amount(lot.part.partUnit) }} {% trans %}project.builds.stocked{% endtrans %}
{% endfor %} {% endif %}
{{ form_row(form.comment) }}
{{ form_row(form.dontCheckQuantity) }}
{{ form_row(form.addBuildsToBuildsPart) }} {% if form.buildsPartLot is defined %} {{ form_row(form.buildsPartLot) }} {% endif %} {{ form_row(form.submit) }} {{ form_end(form) }}