diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php index 9af5bd2581147255b206988bbe59fba148790209..c7de7ee207aea353988ad63b6f3cc704514fa139 100644 --- a/htdocs/expedition/shipment.php +++ b/htdocs/expedition/shipment.php @@ -701,7 +701,13 @@ if ($id > 0 || ! empty($ref)) // Bouton expedier avec gestion des stocks - if (! empty($conf->stock->enabled) && ($commande->statut > Commande::STATUS_DRAFT && $commande->statut < Commande::STATUS_CLOSED)) + + if (! empty($conf->stock->enabled) && $commande->statut == Commande::STATUS_DRAFT) + { + print $langs->trans("ValidateOrderFirstBeforeShipment"); + } + + if (! empty($conf->stock->enabled) && ($commande->statut > Commande::STATUS_DRAFT && $commande->statut < Commande::STATUS_CLOSED)) { if ($user->rights->expedition->creer) { diff --git a/htdocs/langs/en_US/sendings.lang b/htdocs/langs/en_US/sendings.lang index cd4b812ad54b8a02928e98ed4b28ced9bda389bf..a118a4d837339af1961365c6adb521477cf5bc76 100644 --- a/htdocs/langs/en_US/sendings.lang +++ b/htdocs/langs/en_US/sendings.lang @@ -71,6 +71,7 @@ ProductQtyInShipmentAlreadySent=Product quantity from opened customer order alre ProductQtyInSuppliersShipmentAlreadyRecevied=Product quantity from opened supplier order already received NoProductToShipFoundIntoStock=No product to ship found into warehouse <b>%s</b>. Correct stock or go back to choose another warehouse. WeightVolShort=Weight/Vol. +ValidateOrderFirstBeforeShipment=You must first validate the order before being able to make shipments. # Sending methods SendingMethodCATCH=Catch by customer