From 1414e38ca43a709f32302e2ca3dd47f35b74f2c3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 8 Oct 2003 23:14:20 +0000 Subject: [PATCH] Modif barre d'action --- htdocs/compta/facture.php | 42 +++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 15 deletions(-) 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 "

"; if ($fac->statut == 0 && $user->rights->facture->supprimer) { - print ""; + print ""; } elseif ($fac->statut == 1 && abs($resteapayer) > 0 && $user->rights->facture->envoyer) { - print ""; + print ""; } else { - print ""; + print ""; } if ($fac->statut == 1 && $resteapayer > 0 && $user->rights->facture->paiement) { - print ""; + print ""; } else { - print ""; + print ""; } if ($fac->statut == 1 && abs($resteapayer) == 0 && $fac->paye == 0) { if ($user->rights->facture->paiement) { - print ""; + print ""; } else { - print ''; + print ''; } } elseif ($fac->statut == 1 && $resteapayer > 0 && $user->rights->facture->envoyer) { - print ""; + print ""; } else { - print ''; + print ''; } if ($fac->statut == 0 && $fac->total_ht > 0) { if ($user->rights->facture->valider) { - print ""; + print ""; } else { - print ''; + print ''; } } elseif ($fac->statut == 1 && $fac->paye == 0) { if ($user->rights->facture->creer) { - print ""; + print ""; } else { - print ''; + print ''; } } else { - print ''; + print ''; } + + if ($fac->statut > 0) + { + print ''; + // RODO TODO + //print ''; + } + else + { + print ''; + } + print "
[Supprimer][Supprimer][Envoyer][Envoyer]--[Emettre un paiement][Emettre un paiement]--[Classer 'Payée'][Classer 'Payée']--[Envoyer une relance][Envoyer une relance]--[Valider][Valider]--Générer la factureGénérer la facture-----Récurrente-
"; } print "

\n";