Fix: Le bouton emettre paiement ne doit pas apparaitre sur une facture cloture.

This commit is contained in:
Laurent Destailleur 2005-01-09 20:34:35 +00:00
parent d5a69de31f
commit 01f2d7669e

View File

@ -1177,7 +1177,7 @@ else
}
// 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."&amp;action=create\">".$langs->trans("DoPaiement")."</a>\n";
}