diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index 83898b5bf19..838e34e44d0 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -684,7 +684,7 @@ if (empty($reshook)) $batch="batchl".$detail_batch->fk_expeditiondet."_".$detail_batch->fk_origin_stock; $qty = "qtyl".$detail_batch->fk_expeditiondet.'_'.$detail_batch->id; $batch_id = GETPOST($batch,'int'); - if (! empty($batch_id)) + if (! empty($batch_id) && $batch_id != $detail_batch->fk_origin_stock) { if ($lotStock->fetch($batch_id) > 0) { @@ -2163,10 +2163,10 @@ else if ($id || $ref) // Qty to ship or shipped print '