diff --git a/htdocs/fourn/facture/fiche.php3 b/htdocs/fourn/facture/fiche.php3 index 7c4e2346f3d..4384f9cc361 100644 --- a/htdocs/fourn/facture/fiche.php3 +++ b/htdocs/fourn/facture/fiche.php3 @@ -99,35 +99,6 @@ if ($action == 'add') } $facfou->create($user); - /* - - $sql = "INSERT INTO llx_facture_fourn (facnumber, libelle, fk_soc, datec, datef, note, amount, remise, tva, total, fk_user_author) "; - $sql .= " VALUES ('$facnumber','$libelle', $socidp, now(), $datefacture,'$note', $amount, $remise, $tva, $total, $user->id);"; - $result = $db->query($sql); - - if ($result) - { - $sql = "SELECT rowid, facnumber FROM llx_facture_fourn WHERE facnumber='$facnumber';"; - $result = $db->query($sql); - if ($result) - { - $objfac = $db->fetch_object( 0); - $facid = $objfac->rowid; - $facnumber = $objfac->facnumber; - $action = ''; - - } - } - else - { - print "

Erreur : la facture n'a pas été créée !$sql
". $db->error(); - print "

Retour à la propal"; - } - $facid = $facid; - $action = ''; - - */ - } /* * @@ -184,10 +155,10 @@ if ($action == 'create') $html->select_date(); print ''; - print 'Montant HT :'; + print 'Montant HT :'; print ''; - print 'TVA :'; + print 'TVA :'; print ''; @@ -284,8 +260,8 @@ else print stripslashes($obj->libelle). '
'; print ''; - print 'Montant HT :'; - print ''.$obj->amount.'
'; + print 'Montant HT :'; + print '
'; print 'TVA :'; print '