Lecture des emails dans les contrats au lieu des lignes
This commit is contained in:
parent
a8634fd522
commit
35f05b8287
@ -630,11 +630,13 @@ function _emails($db, $user, $contrat_id, $factures_a_mailer)
|
|||||||
$contrat = new TelephonieContrat($db);
|
$contrat = new TelephonieContrat($db);
|
||||||
$contrat->fetch($contrat_id);
|
$contrat->fetch($contrat_id);
|
||||||
|
|
||||||
|
$emails = $contrat->get_contact_facture();
|
||||||
|
|
||||||
$ligne = new LigneTel($db);
|
$ligne = new LigneTel($db);
|
||||||
|
|
||||||
if ($ligne->fetch_by_facture_number($fact->id) == 0)
|
if ($ligne->fetch_by_facture_number($fact->id) == 0)
|
||||||
{
|
{
|
||||||
$emails = $ligne->get_contact_facture();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sizeof($emails > 0))
|
if (sizeof($emails > 0))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user