mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-06 00:14:36 +02:00
Use SIUnitType for part lots amount.
This commit is contained in:
parent
0cc95f58da
commit
f5ebce2a77
4 changed files with 71 additions and 15 deletions
|
@ -712,7 +712,7 @@ class Part extends AttachmentContainingDBElement
|
|||
public function useFloatAmount(): bool
|
||||
{
|
||||
if ($this->partUnit instanceof MeasurementUnit) {
|
||||
return $this->partUnit->isInteger();
|
||||
return !$this->partUnit->isInteger();
|
||||
}
|
||||
|
||||
//When no part unit is set, treat it as part count, and so use the integer value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue