L'administrateur peut regénérer une facture payé (nécessaire en cas de perte des fichiers factures ou de mauvaise utilisation des utilisateurs).
This commit is contained in:
parent
9653cfbd58
commit
d8a15f0f66
@ -1048,12 +1048,17 @@ else
|
|||||||
print '<td align="center" width="20%">-</td>';
|
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)
|
if ($user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
|
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>";
|
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
|
else
|
||||||
{
|
{
|
||||||
print '<td align="center" width="20%">-</td>';
|
print '<td align="center" width="20%">-</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user