Skip to content

Commit

Permalink
Fixed lessThanDesired Constraint for postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Jun 17, 2024
1 parent 4f75e26 commit d7a7e22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function apply(QueryBuilder $queryBuilder): void

//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');
}
}
}

0 comments on commit d7a7e22

Please sign in to comment.