diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php index c807b4b8327..d75b785b6f5 100755 --- a/htdocs/commande/orderstoinvoice.php +++ b/htdocs/commande/orderstoinvoice.php @@ -152,7 +152,7 @@ if (($action == 'create' || $action == 'add') && empty($mesgs)) $datefacture = dol_mktime(12, 0, 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']); if (empty($datefacture)) { - $datefacture = dol_mktime(12, 0, 0, date("m"), date("d"), date("Y")); + $datefacture = dol_mktime(date("h"), date("M"), 0, date("m"), date("d"), date("Y")); } if (! $error) { @@ -388,16 +388,21 @@ if ($action == 'create') print ''; print ''; print ''; + // Ref print ''; - // Tiers + + // Third party print ''; print ''."\n"; + + // Type print '
'.$langs->trans('Ref').''.$langs->trans('Draft').'
'.$langs->trans('Customer').''; print $soc->getNomUrl(1); print ''; print '
'.$langs->trans('Type').''; print ''."\n"; + // Standard invoice print ''; // Private note @@ -663,13 +668,13 @@ if (($action != 'create' && $action != 'add') || ! empty($mesgs)) /* * Boutons actions */ + print '

'.$langs->trans("CloseProcessedOrdersAutomatically"); print '
'; print ''; print ''; print '
'; - print ''.$langs->trans("GoBack").''; - print ''; - print '

'.$langs->trans("CloseProcessedOrdersAutomatically"); + //print ''.$langs->trans("GoBack").''; + print ''; print '
'; print ''; $db->free($resql);
'; print ''; @@ -443,16 +448,16 @@ if ($action == 'create') dol_include_once('/commande/class/commande.class.php'); $srcobject = new Commande($db); - $commandes = $langs->trans("Orders").": "; + $listoforders = ''; foreach ($selected as $sel) { $result=$srcobject->fetch($sel); if ($result > 0) { - $commandes.= $srcobject->ref.", "; + $listoforders .= ($listoforders?', ':'').$srcobject->ref; } } - print $commandes; + print $langs->trans("Orders").": ".$listoforders; print '