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
Jan Böhmer
95f3fc66c2
Do not throw an 500 error, if mapping is not possible
...
This fixes issue #1298
2026-03-15 21:47:15 +01:00
Jan Böhmer
377feaf566
Use yellow alert box for notifying of empty bom on build, show infinite correclty and added translations
...
Fixes issue #1038
2025-10-18 23:32:20 +02:00
Marc
05839a549c
Fix Wrong default number of project builds if BOM is empty #1038
2025-10-18 20:58:19 +02:00
Jan Böhmer
90f83273da
Added nonce to scripts to ensure that they are working with enabled CSP
2025-09-06 23:24:32 +02:00
barisgit
d0f2422e0d
Implement functionality to import schematic csv (or any other csv for that matter), with ability to map input columns to output columns with input validation and error handling
2025-09-06 19:54:13 +02:00
Jan Böhmer
7d834ac8d7
Include the query part of the request, when generating the url for the datatables via a custom twig function.
...
This fixes issue #735 , as without this the query gets not passed to the datatable
2024-10-16 23:57:02 +02:00
Jan Böhmer
7145bce605
Construct the correct current path, when serving from a subdirectory
...
This fixes issue #274
2024-10-13 22:49:42 +02:00
Jan Böhmer
7163df6d46
Fixed paths generated using app.request.requestUri when in a reverse proxy with a subpath
...
Related to issue #428
2023-11-11 23:14:22 +01:00
Jan Böhmer
33a0981981
Added possibility to ignore the checks of withdraw amount when building projects
...
This fixes #349
2023-08-20 23:23:18 +02:00
Jan Böhmer
e72b120c12
Use new UniqueObjectCollection constraint to ensure that BOM entries does not contain duplicate items
2023-07-02 20:49:10 +02:00
Jan Böhmer
742f1f4622
Moved add bom entries button to top of BOM table
2023-06-27 00:11:16 +02:00
Jan Böhmer
6df65a0b9d
Implemented a new darkmode selector using bootstrap 5.3 color mode
2023-06-19 01:08:11 +02:00
Jan Böhmer
e550918d7c
Added links to bom import to project edit and info page
2023-03-16 23:56:46 +01:00
Jan Böhmer
f3449babc1
Added bom import to ApplicationAvailabilityFunctionalTest
2023-03-16 23:39:28 +01:00
Jan Böhmer
bd2559c37b
Added the basic possibility to import KiCAD BOMs into projects
2023-03-16 00:05:46 +01:00
Jan Böhmer
05ab3c3b7b
Fixed image display style for odd shaped (very small) images.
2023-02-20 00:24:12 +01:00
Jan Böhmer
1559b669df
Renamed form/ templates folder to recommended snake_case style
2023-02-04 23:21:36 +01:00
Jan Böhmer
12d4c2f4d9
Renamed label_system templates folder to recommended snake_style style
2023-02-04 23:15:11 +01:00
Jan Böhmer
9097220026
Renamed parts/ templates folder to recommended snake_case style
2023-02-04 23:05:39 +01:00
Jan Böhmer
e8efe81f79
Renamed projects/ template folder to recommended camel_case style
2023-02-04 23:03:32 +01:00