Rsolution du bug sur les filtres en rapport a la societe
This commit is contained in:
parent
af3d3d2a75
commit
776be33424
@ -289,7 +289,7 @@ class Facture
|
||||
$mesg = "La facture ".$this->ref." a été validée.\n";
|
||||
|
||||
$notify = New Notify($this->db);
|
||||
$notify->send($action_notify, $mesg, $filepdf);
|
||||
$notify->send($action_notify, $this->socidp, $mesg, $filepdf);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
@ -215,7 +215,7 @@ class Fichinter
|
||||
$mesg = "La fiche d'intervention ".$this->ref." a été validée.\n";
|
||||
|
||||
$notify = New Notify($this->db);
|
||||
$notify->send($action_notify, $mesg, $filepdf);
|
||||
$notify->send($action_notify, $this->societe_id, $mesg, $filepdf);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -43,12 +43,13 @@ class Notify
|
||||
*
|
||||
*
|
||||
*/
|
||||
Function send($action, $texte, $file="")
|
||||
Function send($action, $socid, $texte, $file="")
|
||||
{
|
||||
$sql = "SELECT s.nom, c.email, c.idp, c.name, c.firstname, a.titre,n.rowid";
|
||||
$sql .= " FROM llx_socpeople as c, llx_action_def as a, llx_notify_def as n, llx_societe as s";
|
||||
$sql .= " WHERE n.fk_contact = c.idp AND a.rowid = n.fk_action";
|
||||
$sql .= " AND n.fk_soc = s.idp AND n.fk_action = ".$action;
|
||||
$sql .= " AND s.idp = ".$socid;
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
if ($result)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user