diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index 7fc4aeabc2987..2cfef0ff9660e 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -1247,7 +1247,7 @@ } $warehouseObject = null; - if (count($warehousePicking) == 1 || !($line->fk_product > 0) || !isModEnabled('stock')) { // If warehouse was already selected or if product is not a predefined, we go into this part with no multiwarehouse selection + if (count($warehousePicking) == 1 || !empty($conf->global->STOCK_ALLOW_NEGATIVE_TRANSFER) || !($line->fk_product > 0) || !isModEnabled('stock')) { // If warehouse was already selected or if product is not a predefined, we go into this part with no multiwarehouse selection print ''; //ship from preselected location $stock = + (isset($product->stock_warehouse[$warehouse_id]->real) ? $product->stock_warehouse[$warehouse_id]->real : 0); // Convert to number