Ajout la possibilite de classer une facture
This commit is contained in:
parent
e00ba56ea4
commit
6911dc885f
@ -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 '<a href="'.DOL_URL_ROOT.'/projet/fiche.php?id='.$fac->projetid.'">'.$projet->title.'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a href="facture.php?facid='.$facid.'&action=classer">Classer la facture</a>';
|
||||
}
|
||||
print " </td><td>Paiements</td></tr>";
|
||||
|
||||
print "<tr><td>Auteur</td><td colspan=\"3\">$author->fullname</td>";
|
||||
@ -1003,6 +1016,23 @@ else
|
||||
*
|
||||
*
|
||||
*/
|
||||
if ($action == 'classer')
|
||||
{
|
||||
print "<p><form method=\"post\" action=\"$PHP_SELF?facid=$facid\">\n";
|
||||
print '<input type="hidden" name="action" value="classin">';
|
||||
print '<table cellspacing="0" class="border" cellpadding="3">';
|
||||
print '<tr><td>Projet</td><td>';
|
||||
|
||||
$proj = new Project($db);
|
||||
$html->select_array("projetid",$proj->liste_array($socidp));
|
||||
|
||||
print "</td></tr>";
|
||||
print '<tr><td colspan="2" align="center"><input type="submit" value="Envoyer"></td></tr></table></form></p>';
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
if ($action == 'presend')
|
||||
{
|
||||
$replytoname = $user->fullname;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user