Merge pull request #21888 from prietojc/patch-18

Update card.php
This commit is contained in:
Laurent Destailleur 2022-08-25 17:40:03 +02:00 committed by GitHub
commit db19a22b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1445,6 +1445,11 @@ if ($action == 'create') {
}
foreach ($product->stock_warehouse as $warehouse_id => $stock_warehouse) {
if (!empty($warehousePicking) && !in_array($warehouse_id, $warehousePicking)) {
// if a warehouse was selected by user, picking is limited to this warehouse and his children.
continue;
}
$tmpwarehouseObject->fetch($warehouse_id);
if (($stock_warehouse->real > 0) && (count($stock_warehouse->detail_batch))) {
foreach ($stock_warehouse->detail_batch as $dbatch) {