modif pour dcaler la date de livraison par defaut si DATE_LIVRAISON_WEEK_DELAY existe

This commit is contained in:
Andre Cianfarani 2006-03-02 08:53:00 +00:00
parent 4b52a7df13
commit 10f45ef92d
2 changed files with 8 additions and 2 deletions

View File

@ -110,7 +110,10 @@ if ($_GET["action"] == 'create')
// date de livraison
print '<tr><td>'.$langs->trans("DateDelivery").'</td>';
print '<td>';
$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 '</td></tr>';
// Conditions de réglement

View File

@ -339,7 +339,10 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
// date de livraison
print "<tr><td>".$langs->trans("DateDelivery")."</td><td>";
$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 "</td></tr>";