mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Improved styling of the BOM edit
This commit is contained in:
parent
b83b55b8d4
commit
a3ee51e76b
6 changed files with 66 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue