Fix: date problem with MAIN_AUTOFILL_DATE
This commit is contained in:
parent
216e2445c9
commit
8d41d43385
@ -977,14 +977,13 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
|
|||||||
print "<tr><td>".$langs->trans("DeliveryDate")."</td><td>";
|
print "<tr><td>".$langs->trans("DeliveryDate")."</td><td>";
|
||||||
if ($conf->global->DATE_LIVRAISON_WEEK_DELAY)
|
if ($conf->global->DATE_LIVRAISON_WEEK_DELAY)
|
||||||
{
|
{
|
||||||
$tmpdte = time() + ((7*$conf->global->DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60);
|
$datedelivery = time() + ((7*$conf->global->DATE_LIVRAISON_WEEK_DELAY) * 24 * 60 * 60);
|
||||||
$html->select_date($tmpdte,'liv_','','',1,"crea_commande");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$dateorder=empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0;
|
$datedelivery=empty($conf->global->MAIN_AUTOFILL_DATE)?-1:0;
|
||||||
$html->select_date($dateorder,'liv_','','',1,"crea_commande");
|
|
||||||
}
|
}
|
||||||
|
$html->select_date($datedelivery,'liv_','','','',"crea_commande");
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
||||||
// Delivery address
|
// Delivery address
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user