Dont return null in getPartsInstockSum() function, when no part lots are defined yet.

This should fix issue #38.
This commit is contained in:
Jan Böhmer 2020-04-08 16:41:04 +02:00
parent 64964f3b4d
commit a28747b7ba
2 changed files with 6 additions and 6 deletions

View file

@ -61,12 +61,12 @@ class StatisticsHelper
/**
* Returns the summed instocked over all parts (only parts without a measurement unit).
*
* @return string
* @return float
*
* @throws \Doctrine\ORM\NoResultException
* @throws \Doctrine\ORM\NonUniqueResultException
*/
public function getPartsInstockSum(): string
public function getPartsInstockSum(): float
{
return $this->part_repo->getPartsInstockSum();
}