Added a tab "Build" to project info page, where you can see how often you can build this project.

This commit is contained in:
Jan Böhmer 2023-01-18 23:07:51 +01:00
parent 6423e52092
commit 76ec63e760
10 changed files with 386 additions and 2 deletions

View file

@ -259,7 +259,14 @@ class ProjectBOMEntry extends AbstractDBElement
$this->price_currency = $price_currency;
}
/**
* Checks whether this BOM entry is a part associated BOM entry or not.
* @return bool True if this BOM entry is a part associated BOM entry, false otherwise.
*/
public function isPartBomEntry(): bool
{
return $this->part !== null;
}
/**
* @Assert\Callback