mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 21:59:00 +01:00
Use SIUnitType for part lots amount.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user