Fixed default consume rule ORDER BY handling related to stock_next_use (fixes #1979)

This commit is contained in:
Bernd Bestel
2022-08-26 11:15:15 +02:00
parent d883474f03
commit c0d0b8fc90
5 changed files with 128 additions and 12 deletions

View File

@@ -648,7 +648,7 @@ class StockApiController extends BaseApiController
$allowSubproductSubstitution = true;
}
return $this->FilteredApiResponse($response, $this->getStockService()->GetProductStockEntries($args['productId'], false, $allowSubproductSubstitution, true), $request->getQueryParams());
return $this->FilteredApiResponse($response, $this->getStockService()->GetProductStockEntries($args['productId'], false, $allowSubproductSubstitution), $request->getQueryParams());
}
public function LocationStockEntries(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)