Part-DB-server/tests/Services/ProjectSystem
MayNiklas fa1e5549f0 Deduplicate BOM entry price logic into ProjectBuildHelper
The private getBomEntryUnitPrice() in ProjectBomEntriesDataTable was
identical to the one in ProjectBuildHelper. Replaced it with a new
public getEntryUnitPrice() on ProjectBuildHelper (returns BigDecimal,
never null) and delegate to it from the DataTable.

This eliminates the duplicate code and brings the DataTable lines under
the existing ProjectBuildHelper test coverage. Added three tests for
getEntryUnitPrice() covering the no-pricing, non-part, and part cases.
2026-04-15 13:11:06 +02:00
..
ProjectBuildHelperTest.php Deduplicate BOM entry price logic into ProjectBuildHelper 2026-04-15 13:11:06 +02:00
ProjectBuildPartHelperTest.php Ran rector and made tests final 2026-02-14 23:32:43 +01:00