Ajout la mise jour des contrats
This commit is contained in:
parent
5535b8244b
commit
8f15845537
@ -383,7 +383,6 @@ class LigneTel {
|
||||
|
||||
$this->db->query($sql);
|
||||
|
||||
|
||||
if ($statut == 2)
|
||||
{
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."telephonie_societe_ligne";
|
||||
@ -479,6 +478,17 @@ class LigneTel {
|
||||
|
||||
$this->log_clients();
|
||||
|
||||
|
||||
/* Mise à jour du contrat associé */
|
||||
|
||||
if ($this->contrat > 0)
|
||||
{
|
||||
$contrat = new TelephonieContrat($this->db);
|
||||
$contrat->id = $this->contrat;
|
||||
$contrat->update_statut();
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user