Fix: Le bouton emettre paiement ne doit pas apparaitre sur une facture cloturée.
This commit is contained in:
parent
d5a69de31f
commit
01f2d7669e
@ -1177,7 +1177,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Emettre paiement
|
// Emettre paiement
|
||||||
if ($fac->statut == 1 && $user->rights->facture->paiement)
|
if ($fac->statut == 1 && $fac->paye == 0 && $user->rights->facture->paiement)
|
||||||
{
|
{
|
||||||
print " <a class=\"tabAction\" href=\"paiement.php?facid=".$fac->id."&action=create\">".$langs->trans("DoPaiement")."</a>\n";
|
print " <a class=\"tabAction\" href=\"paiement.php?facid=".$fac->id."&action=create\">".$langs->trans("DoPaiement")."</a>\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user