mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 06:55:27 +01:00
Fixed 'Number of parts with price information' statistic.
This commit is contained in:
@@ -75,7 +75,7 @@ class PartRepository extends NamedDBElementRepository
|
||||
public function getPartsCountWithPrice(): int
|
||||
{
|
||||
$qb = $this->createQueryBuilder('part');
|
||||
$qb->select('COUNT(part)')
|
||||
$qb->select('COUNT(DISTINCT part)')
|
||||
->innerJoin('part.orderdetails', 'orderdetail')
|
||||
->innerJoin('orderdetail.pricedetails', 'pricedetail')
|
||||
->where('pricedetail.price > 0.0');
|
||||
|
||||
Reference in New Issue
Block a user