mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Fixed lessThanDesired Constraint for postgresql
This commit is contained in:
parent
4f75e2641b
commit
d7a7e22e5a
1 changed files with 2 additions and 2 deletions
|
@ -48,9 +48,9 @@ class LessThanDesiredConstraint extends BooleanConstraint
|
||||||
|
|
||||||
//If value is true, we want to filter for parts with stock < desired stock
|
//If value is true, we want to filter for parts with stock < desired stock
|
||||||
if ($this->value) {
|
if ($this->value) {
|
||||||
$queryBuilder->andHaving( $this->property . ' < minamount');
|
$queryBuilder->andHaving( $this->property . ' < part.minamount');
|
||||||
} else {
|
} else {
|
||||||
$queryBuilder->andHaving($this->property . ' >= minamount');
|
$queryBuilder->andHaving($this->property . ' >= part.minamount');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue