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 '| '.$langs->trans('Ref').' | '.$langs->trans('Draft').' |
';
- // Tiers
+
+ // Third party
print '| '.$langs->trans('Customer').' | ';
print $soc->getNomUrl(1);
print '';
print ' | ';
print '
'."\n";
+
+ // Type
print '| '.$langs->trans('Type').' | ';
print ' |