Update card.php
Same behavior as products with not lot. (See line 1338).
This commit is contained in:
parent
1f91338d61
commit
804480ca2d
@ -1445,6 +1445,11 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($product->stock_warehouse as $warehouse_id => $stock_warehouse) {
|
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);
|
$tmpwarehouseObject->fetch($warehouse_id);
|
||||||
if (($stock_warehouse->real > 0) && (count($stock_warehouse->detail_batch))) {
|
if (($stock_warehouse->real > 0) && (count($stock_warehouse->detail_batch))) {
|
||||||
foreach ($stock_warehouse->detail_batch as $dbatch) {
|
foreach ($stock_warehouse->detail_batch as $dbatch) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user