Part-DB-server/templates/projects/info
MayNiklas 82e55bc83d Add build price summary to project info tab
Displays the total BOM price for N builds on the project info page,
using the existing price-tier logic from PricedetailHelper. The user
can adjust the number of builds via a small form; the unit price is
also shown when N > 1.

New backend:
- ProjectBuildHelper gains calculateTotalBuildPrice(),
  calculateUnitBuildPrice(), roundedTotalBuildPrice(), and
  roundedUnitBuildPrice() — bulk-order quantities are factored in so
  that price tiers apply correctly across N builds.
- ProjectController::info() now reads ?n= and passes number_of_builds
  to the template.

Template (_info.html.twig):
- Adds price badge (hidden when no pricing data is available).
- Adds number-of-builds form that reloads the info page.
2026-04-15 12:38:06 +02:00
..
_bom.html.twig Include the query part of the request, when generating the url for the datatables via a custom twig function. 2024-10-16 23:57:02 +02:00
_builds.html.twig Use yellow alert box for notifying of empty bom on build, show infinite correclty and added translations 2025-10-18 23:32:20 +02:00
_info.html.twig Add build price summary to project info tab 2026-04-15 12:38:06 +02:00
_info_card.html.twig Renamed label_system templates folder to recommended snake_style style 2023-02-04 23:15:11 +01:00
_subprojects.html.twig Renamed projects/ template folder to recommended camel_case style 2023-02-04 23:03:32 +01:00
info.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00