Date livraison optionnelle
This commit is contained in:
parent
240f2f2359
commit
56cf9f0b17
@ -107,19 +107,21 @@ if ($_GET["action"] == 'create')
|
|||||||
print '<tr><td>'.$langs->trans("Author").'</td><td>'.$user->fullname.'</td></tr>';
|
print '<tr><td>'.$langs->trans("Author").'</td><td>'.$user->fullname.'</td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("ValidityDuration").'</td><td><input name="duree_validite" size="5" value="15"> '.$langs->trans("days").'</td></tr>';
|
print '<tr><td>'.$langs->trans("ValidityDuration").'</td><td><input name="duree_validite" size="5" value="15"> '.$langs->trans("days").'</td></tr>';
|
||||||
|
|
||||||
// date de livraison
|
// Date de livraison
|
||||||
print '<tr><td>'.$langs->trans("DateDelivery").'</td>';
|
print '<tr><td>'.$langs->trans("DateDelivery").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if(DATE_LIVRAISON_WEEK_DELAY != "")
|
if ($conf->global->DATE_LIVRAISON_WEEK_DELAY != "")
|
||||||
{
|
{
|
||||||
$tmpdte = time() + ((7*DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60);
|
$tmpdte = time() + ((7 * $conf->global->DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60);
|
||||||
$syear = date("Y", $tmpdte);
|
$syear = date("Y", $tmpdte);
|
||||||
$smonth = date("m", $tmpdte);
|
$smonth = date("m", $tmpdte);
|
||||||
$sday = date("d", $tmpdte);
|
$sday = date("d", $tmpdte);
|
||||||
$form->select_date($syear."-".$smonth."-".$sday,'liv_','','','',"addprop");
|
$form->select_date($syear."-".$smonth."-".$sday,'liv_','','','',"addprop");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$form->select_date('','liv_','','','',"addprop");
|
{
|
||||||
|
$form->select_date(-1,'liv_','','','',"addprop");
|
||||||
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Conditions de réglement
|
// Conditions de réglement
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user