diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index b8a4aa6d2fa..8b471fdcfe2 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -2513,7 +2513,7 @@ if ($action == 'create' && $user->rights->commande->creer) } // Create contract - if ($conf->contrat->enabled && ($object->statut == Commande::STATUS_VALIDATED || $object->statut == Commande::STATUS_ACCEPTED)) { + if ($conf->contrat->enabled && ($object->statut == Commande::STATUS_VALIDATED || $object->statut == Commande::STATUS_ACCEPTED || $object->statut == Commande::STATUS_CLOSED)) { $langs->load("contracts"); if ($user->rights->contrat->creer) { diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index b821769e666..4a72b629df5 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -2185,31 +2185,34 @@ if ($action == 'create') if ((empty($origin)) || ((($origin == 'propal') || ($origin == 'commande')) && (! empty($originid)))) { // Deposit - print '
| '; - print $desc; - print ' | '; - if (($origin == 'propal') || ($origin == 'commande')) - { - print ''; - $arraylist = array('amount' => 'FixAmount','variable' => 'VarAmount'); - print $form->selectarray('typedeposit', $arraylist, GETPOST('typedeposit'), 0, 0, 0, '', 1); - print ' | '; - print '' . $langs->trans('Value') . ':'; - } - print ' |
| '; + print $desc; + print ' | '; + if (($origin == 'propal') || ($origin == 'commande')) + { + print ''; + $arraylist = array('amount' => 'FixAmount','variable' => 'VarAmount'); + print $form->selectarray('typedeposit', $arraylist, GETPOST('typedeposit'), 0, 0, 0, '', 1); + print ' | '; + print '' . $langs->trans('Value') . ':'; + } + print ' |