L'administrateur peut regnrer une facture pay (ncessaire en cas de perte des fichiers factures ou de mauvaise utilisation des utilisateurs).
This commit is contained in:
parent
9653cfbd58
commit
d8a15f0f66
@ -1048,11 +1048,16 @@ else
|
||||
print '<td align="center" width="20%">-</td>';
|
||||
}
|
||||
}
|
||||
elseif ($fac->statut == 1 && $fac->paye == 0)
|
||||
elseif ($fac->statut == 1 && ($fac->paye == 0 || $user->admin))
|
||||
{
|
||||
if ($user->rights->facture->creer)
|
||||
{
|
||||
print "<td align=\"center\" width=\"20%\"><a href=\"facture.php?facid=$fac->id&action=pdf\">Générer la facture</a></td>";
|
||||
if ($fac->paye == 0) {
|
||||
print "<td align=\"center\" width=\"20%\"><a href=\"facture.php?facid=$fac->id&action=pdf\">Générer la facture</a></td>";
|
||||
}
|
||||
else {
|
||||
print "<td align=\"center\" width=\"20%\"><a href=\"facture.php?facid=$fac->id&action=pdf\">Regénérer la facture</a></td>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user