Improved styling of the BOM edit

This commit is contained in:
Jan Böhmer 2022-12-27 13:03:19 +01:00
parent b83b55b8d4
commit a3ee51e76b
6 changed files with 66 additions and 11 deletions

View file

@ -207,6 +207,10 @@ class ProjectBOMEntry extends AbstractDBElement
$this->quantity = round($this->quantity);
}
}
//Non-Part BOM entries are rounded
if ($this->part === null) {
$this->quantity = round($this->quantity);
}
//Check that every part name in the mountnames list is unique (per bom_entry)
$mountnames = explode(',', $this->mountnames);