diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 74b928cfd02..b1d5ee46ec9 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -747,78 +747,90 @@ else * Fin Ajout ligne * */ - if ($user->societe_id == 0 && $fac->paye == 0) + if ($user->societe_id == 0) { print "
| [Supprimer] | "; + print "[Supprimer] | "; } elseif ($fac->statut == 1 && abs($resteapayer) > 0 && $user->rights->facture->envoyer) { - print "[Envoyer] | "; + print "[Envoyer] | "; } else { - print "- | "; + print "- | "; } if ($fac->statut == 1 && $resteapayer > 0 && $user->rights->facture->paiement) { - print "[Emettre un paiement] | "; + print "[Emettre un paiement] | "; } else { - print "- | "; + print "- | "; } if ($fac->statut == 1 && abs($resteapayer) == 0 && $fac->paye == 0) { if ($user->rights->facture->paiement) { - print "[Classer 'Payée'] | "; + print "[Classer 'Payée'] | "; } else { - print '- | '; + print '- | '; } } elseif ($fac->statut == 1 && $resteapayer > 0 && $user->rights->facture->envoyer) { - print "[Envoyer une relance] | "; + print "[Envoyer une relance] | "; } else { - print '- | '; + print '- | '; } if ($fac->statut == 0 && $fac->total_ht > 0) { if ($user->rights->facture->valider) { - print "[Valider] | "; + print "[Valider] | "; } else { - print '- | '; + print '- | '; } } elseif ($fac->statut == 1 && $fac->paye == 0) { if ($user->rights->facture->creer) { - print "Générer la facture | "; + print "Générer la facture | "; } else { - print '- | '; + print '- | '; } } else { - print '- | '; + print '- | '; } + + if ($fac->statut > 0) + { + print '- | '; + // RODO TODO + //print 'Récurrente | '; + } + else + { + print '- | '; + } + print "
\n";