diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index a8ea9f1201d..50df02b1bff 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2761,6 +2761,18 @@ elseif (! empty($object->id)) } } + // Ship + if (! empty($conf->stock->enabled) && ! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)) + { + if (in_array($object->statut, array(3,4))) { + if ($conf->fournisseur->enabled && $user->rights->fournisseur->commande->receptionner) { + print '
' . $langs->trans('OrderDispatch') . '
'; + } else { + print '
' . $langs->trans('OrderDispatch') . '
'; + } + } + } + // Create bill if (! empty($conf->facture->enabled)) {