diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index efa97cb02c9..29c0b1f4695 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -43,6 +43,15 @@ if ($user->societe_id > 0) $action = ''; $socidp = $user->societe_id; } +/* + * + */ +if ($HTTP_POST_VARS["action"] == 'classin') +{ + $facture = new Facture($db); + $facture->fetch($facid); + $facture->classin($HTTP_POST_VARS["projetid"]); +} /* * */ @@ -623,6 +632,10 @@ else $projet->fetch($fac->projetid); print ''.$projet->title.''; } + else + { + print 'Classer la facture'; + } print " Paiements"; print "Auteur$author->fullname"; @@ -1003,6 +1016,23 @@ else * * */ + if ($action == 'classer') + { + print "

\n"; + print ''; + print ''; + print '"; + print '
Projet'; + + $proj = new Project($db); + $html->select_array("projetid",$proj->liste_array($socidp)); + + print "

'; + } + /* + * + * + */ if ($action == 'presend') { $replytoname = $user->fullname;