+
+
+
+ |
+ {% 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 #}
+
+
+
+ {% endfor %}
+ {% endif %}
+
+ {{ form_errors(form["lot_"~lot.id]) }}
+ {{ form_widget(form["lot_"~lot.id]) }}
+
+
+ / {{ lot.amount | format_amount(lot.part.partUnit) }} {% trans %}project.builds.stocked{% endtrans %}
+
+ |
+
{% trans %}project.build.help{% endtrans %}
+ + {% include 'Projects/build/_form.html.twig' %} + + +{% endblock %} \ No newline at end of file diff --git a/templates/Projects/info/_builds.html.twig b/templates/Projects/info/_builds.html.twig new file mode 100644 index 00000000..5418a614 --- /dev/null +++ b/templates/Projects/info/_builds.html.twig @@ -0,0 +1,40 @@ +{% set can_build = buildHelper.projectBuildable(project) %} + +{% import "components/projects.macro.html.twig" as project_macros %} + +{% if project.status is not empty and project.status != "in_production" %} +{% trans %}project.builds.no_stocked_builds{% endtrans %}: {{ project.buildPart.amountSum }}
+{% endif %} \ No newline at end of file diff --git a/templates/Projects/info/info.html.twig b/templates/Projects/info/info.html.twig index ce920e9e..9a57e55c 100644 --- a/templates/Projects/info/info.html.twig +++ b/templates/Projects/info/info.html.twig @@ -47,6 +47,13 @@ {{ project.bomEntries | length }} +