diff --git a/htdocs/fourn/facture/index.php3 b/htdocs/fourn/facture/index.php3 index 6681b2e78cf..5e2cb206f9b 100644 --- a/htdocs/fourn/facture/index.php3 +++ b/htdocs/fourn/facture/index.php3 @@ -41,38 +41,6 @@ if ($action == 'note') $result = $db->query($sql); } -if ($action == 'stcomm') -{ - if ($stcommid <> 'null' && $stcommid <> $oldstcomm) - { - $sql = "INSERT INTO socstatutlog (datel, fk_soc, fk_statut, author) "; - $sql .= " VALUES ('$dateaction',$socid,$stcommid,'" . $GLOBALS["REMOTE_USER"] . "')"; - $result = @$db->query($sql); - - if ($result) - { - $sql = "UPDATE societe SET fk_stcomm=$stcommid WHERE idp=$socid"; - $result = $db->query($sql); - } - else - { - $errmesg = "ERREUR DE DATE !"; - } - } - - if ($actioncommid) - { - $sql = "INSERT INTO actioncomm (datea, fk_action, fk_soc, fk_user_author) VALUES ('$dateaction',$actioncommid,$socid,'" . $user->id . "')"; - $result = @$db->query($sql); - - if (!$result) - { - $errmesg = "ERREUR DE DATE !"; - } - } -} - - if ($action == 'delete') { $fac = new FactureFourn($db); @@ -158,10 +126,12 @@ if ($result) print "
| Numéro | '; + print 'Date | '; print 'Libellé | '; print_liste_field_titre("Société",$PHP_SELF,"s.nom"); - print ' | Montant | '; - print 'Payé | '; + print ''; + print_liste_field_titre("Montant",$PHP_SELF,"fac.total_ht"); + print ' | Payé | '; print "
| facid\">$obj->facnumber | \n"; - print "facid\">$obj->libelle | \n"; + print "facid\">".strftime("%d %b %Y",$obj->datef)." | \n"; + print ''.stripslashes("$obj->libelle").' | '; print "socid\">$obj->nom | \n"; print ''.price($obj->total_ht).' | ';