Consume opened products first (closes #1183)

This commit is contained in:
Bernd Bestel
2020-12-19 10:28:35 +01:00
parent 44cdd42062
commit eb4a748da3
8 changed files with 13 additions and 11 deletions

View File

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