diff --git a/htdocs/expedition/commande.php b/htdocs/expedition/commande.php index b8f8767ecc0..dd4a9bb9cdd 100644 --- a/htdocs/expedition/commande.php +++ b/htdocs/expedition/commande.php @@ -522,11 +522,7 @@ if ($_GET["id"] > 0) print ''.$langs->trans("Sending").''; if ($conf->livraison->enabled) { - $objt = $db->fetch_object($resql); - if ($objt->livraison_id) - { - print ''.$langs->trans("DeliveryOrder").''; - } + print ''.$langs->trans("DeliveryOrder").''; } print ''.$langs->trans("Description").''; print ''.$langs->trans("QtyShipped").''; @@ -545,6 +541,10 @@ if ($_GET["id"] > 0) { print ''.img_object($langs->trans("ShowSending"),'generic').' '.$objp->livraison_ref.''; } + else + { + print ''; + } if ($objp->fk_product > 0) {