mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-07 07:48:10 +01:00
Improved styling of the BOM edit
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user