Lecture des emails dans les contrats au lieu des lignes

This commit is contained in:
Rodolphe Quiedeville 2005-04-08 11:30:56 +00:00
parent a8634fd522
commit 35f05b8287

View File

@ -630,11 +630,13 @@ function _emails($db, $user, $contrat_id, $factures_a_mailer)
$contrat = new TelephonieContrat($db);
$contrat->fetch($contrat_id);
$emails = $contrat->get_contact_facture();
$ligne = new LigneTel($db);
if ($ligne->fetch_by_facture_number($fact->id) == 0)
{
$emails = $ligne->get_contact_facture();
}
if (sizeof($emails > 0))