Use SIUnitType for part lots amount.

This commit is contained in:
Jan Böhmer 2019-08-26 13:22:12 +02:00
parent 0cc95f58da
commit f5ebce2a77
4 changed files with 71 additions and 15 deletions

View file

@ -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.