Fixed lessThanDesired Constraint for postgresql

This commit is contained in:
Jan Böhmer 2024-06-17 21:16:46 +02:00
parent 4f75e2641b
commit d7a7e22e5a

View file

@ -48,9 +48,9 @@ class LessThanDesiredConstraint extends BooleanConstraint
//If value is true, we want to filter for parts with stock < desired stock
if ($this->value) {
$queryBuilder->andHaving( $this->property . ' < minamount');
$queryBuilder->andHaving( $this->property . ' < part.minamount');
} else {
$queryBuilder->andHaving($this->property . ' >= minamount');
$queryBuilder->andHaving($this->property . ' >= part.minamount');
}
}
}