From 9a4ddf8b920990e46e14acb52ede9ed5bc3875b1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 13 May 2003 12:31:30 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=20jour=20mise=20en=20forme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/facture/fiche.php3 | 417 ++++++++++---------------------- 1 file changed, 126 insertions(+), 291 deletions(-) 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 '