diff --git a/htdocs/compta/facture.php3 b/htdocs/compta/facture.php3 index 2fcf33123fb..ba425b17c72 100644 --- a/htdocs/compta/facture.php3 +++ b/htdocs/compta/facture.php3 @@ -64,7 +64,7 @@ if ($action == 'delete') if ($action == 'add') { - $datefacture = $db->idate(mktime(12, 0 , 0, $pmonth, $pday, $pyear)); + $datefacture = $db->idate(mktime(12, 0 , 0, $remonth, $reday, $reyear)); if (! $propalid) { @@ -179,12 +179,10 @@ if ($action == 'create') print "Propal :$obj->ref"; print 'Montant HT :'.price($amount).''; print "TVA 19.6% :".price($obj->tva).""; - print "Total TTC :".price($obj->total).""; - + print "Total TTC :".price($obj->total).""; } else - { - + { print 'Montant HT :'; print ''; print ''; @@ -198,45 +196,10 @@ if ($action == 'create') print "Auteur :".$user->fullname.""; print "Date :"; - $cday = date("d", time()); - print ""; - $cmonth = date("n", time()); - print ""; - - print ""; + + print_date_select(time()); + + print ""; print "Numéro : ";