diff --git a/htdocs/comm/addpropal.php b/htdocs/comm/addpropal.php
index ca5eff971ce..b3f92cd2f17 100644
--- a/htdocs/comm/addpropal.php
+++ b/htdocs/comm/addpropal.php
@@ -110,7 +110,10 @@ if ($_GET["action"] == 'create')
// date de livraison
print '
| '.$langs->trans("DateDelivery").' | ';
print '';
- $form->select_date('','liv_','','','',"addprop");
+ if(DATE_LIVRAISON_WEEK_DELAY != "")
+ $form->select_date(time() + ((7*DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60),'liv_','','','',"addprop");
+ else
+ $form->select_date('','liv_','','','',"addprop");
print ' |
';
// Conditions de réglement
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 0a913594a1d..7c1784f532b 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -339,7 +339,10 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
// date de livraison
print "| ".$langs->trans("DateDelivery")." | ";
- $html->select_date('','liv_','','','',"crea_commande");
+ if(DATE_LIVRAISON_WEEK_DELAY != "")
+ $html->select_date(time() + ((7*DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60),'liv_','','','',"crea_commande");
+ else
+ $html->select_date('','liv_','','','',"crea_commande");
print " |
";