diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index af87ef4f6ee..9a527ec1b2b 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2517,7 +2517,8 @@ elseif (! empty($object->id)) print '
| '.$langs->trans("Receive").' | |||||||||
| '.$langs->trans("DeliveryDate").' | '; - print $form->select_date('','',1,1,'',"commande",1,1,1); + $datepreselected = dol_now(); + print $form->select_date($datepreselected,'',1,1,'',"commande",1,1,1); print " | ||||||||
| ".$langs->trans("Delivery")." | \n"; diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index c55183921f2..5951972dfd8 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -626,11 +626,11 @@ if ($id > 0 || ! empty($ref)) { print ' | '; print ''; print ' | '; - print ''; + print ' | '; $dlcdatesuffix = dol_mktime(0, 0, 0, GETPOST('dlc' . $suffix . 'month'), GETPOST('dlc' . $suffix . 'day'), GETPOST('dlc' . $suffix . 'year')); $form->select_date($dlcdatesuffix, 'dlc' . $suffix, '', '', 1, ""); print ' | '; - print ''; + print ' | '; $dluodatesuffix = dol_mktime(0, 0, 0, GETPOST('dluo' . $suffix . 'month'), GETPOST('dluo' . $suffix . 'day'), GETPOST('dluo' . $suffix . 'year')); $form->select_date($dluodatesuffix, 'dluo' . $suffix, '', '', 1, ""); print ' | '; @@ -685,9 +685,9 @@ if ($id > 0 || ! empty($ref)) { // Warehouse print ''; if (count($listwarehouses) > 1) { - print $formproduct->selectWarehouses(GETPOST("entrepot" . $suffix)?GETPOST("entrepot" . $suffix):($objp->fk_default_warehouse?$objp->fk_default_warehouse:''), "entrepot" . $suffix, '', 1, 0, $objp->fk_product, '', 1); + print $formproduct->selectWarehouses(GETPOST("entrepot" . $suffix)?GETPOST("entrepot" . $suffix):($objp->fk_default_warehouse?$objp->fk_default_warehouse:''), "entrepot" . $suffix, '', 1, 0, $objp->fk_product, '', 1, 0, null, 'csswarehouse'.$suffix); } elseif (count($listwarehouses) == 1) { - print $formproduct->selectWarehouses(GETPOST("entrepot" . $suffix)?GETPOST("entrepot" . $suffix):($objp->fk_default_warehouse?$objp->fk_default_warehouse:''), "entrepot" . $suffix, '', 0, 0, $objp->fk_product, '', 1); + print $formproduct->selectWarehouses(GETPOST("entrepot" . $suffix)?GETPOST("entrepot" . $suffix):($objp->fk_default_warehouse?$objp->fk_default_warehouse:''), "entrepot" . $suffix, '', 0, 0, $objp->fk_product, '', 1, 0, null, 'csswarehouse'.$suffix); } else { $langs->load("errors"); print $langs->trans("ErrorNoWarehouseDefined"); @@ -852,7 +852,7 @@ if ($id > 0 || ! empty($ref)) { print ' | '; } // date - print '' . dol_print_date($objp->datec) . ' | '; + print '' . dol_print_date($objp->datec, "dayhour") . ' | '; print "