forked from Wavyzz/dolibarr
modif pour dcaler la date de livraison par defaut si DATE_LIVRAISON_WEEK_DELAY existe
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user