Fix: Maxi debug of emailing feature
This commit is contained in:
parent
6539f61785
commit
80dd25401f
@ -123,7 +123,11 @@ class mailing_dolibarr_services_expired extends MailingTargets
|
||||
$cibles[$j] = array(
|
||||
'email' => $obj->email,
|
||||
'name' => $obj->name,
|
||||
'other' => dol_print_date($this->db->jdate($obj->date_ouverture),'day').';'.dol_print_date($this->db->jdate($obj->date_fin_validite),'day').';'.$obj->fk_contrat.';'.$obj->cdid,
|
||||
'other' =>
|
||||
('StartDate='.dol_print_date($this->db->jdate($obj->date_ouverture),'day')).';'.
|
||||
('EndDate='.dol_print_date($this->db->jdate($obj->date_fin_validite),'day')).';'.
|
||||
('Contract='.$obj->fk_contrat).';'.
|
||||
('ContactLine='.$obj->cdid),
|
||||
'source_url' => $this->url($obj->rowid),
|
||||
'source_id' => $obj->cdid,
|
||||
'source_type' => 'contract_line'
|
||||
|
||||
@ -184,10 +184,11 @@ class mailing_fraise extends MailingTargets
|
||||
'fk_contact' => $obj->fk_contact,
|
||||
'name' => $obj->name,
|
||||
'firstname' => $obj->firstname,
|
||||
'other' => ($langs->transnoentities("DateEnd").'='.dol_print_date($this->db->jdate($obj->datefin),'day')).';'.
|
||||
($langs->transnoentities("Civility").'='.$obj->civilite).';'.
|
||||
($langs->transnoentities("Login").'='.$obj->login).';'.
|
||||
($langs->transnoentities("Company").'='.$obj->societe),
|
||||
'other' =>
|
||||
($langs->transnoentities("Login").'='.$obj->login).';'.
|
||||
($langs->transnoentities("Civility").'='.$langs->transnoentities("Civility".$obj->civilite)).';'.
|
||||
($langs->transnoentities("DateEnd").'='.dol_print_date($this->db->jdate($obj->datefin),'day')).';'.
|
||||
($langs->transnoentities("Company").'='.$obj->societe),
|
||||
'source_url' => $this->url($obj->id),
|
||||
'source_id' => $obj->id,
|
||||
'source_type' => 'member'
|
||||
|
||||
@ -219,15 +219,14 @@ class mailing_poire extends MailingTargets
|
||||
$obj = $this->db->fetch_object($result);
|
||||
if ($old <> $obj->email)
|
||||
{
|
||||
$other='';
|
||||
if ($obj->companyname) { if ($other) $other.=';'; $other.=$langs->transnoentities("ThirdParty").'='.$obj->companyname; }
|
||||
if ($obj->civilite) { if ($other) $other.=';'; $other.=$langs->transnoentities("Civility".$obj->civilite); }
|
||||
$cibles[$j] = array(
|
||||
'email' => $obj->email,
|
||||
'fk_contact' => $obj->fk_contact,
|
||||
'name' => $obj->name,
|
||||
'firstname' => $obj->firstname,
|
||||
'other' => $other,
|
||||
'other' =>
|
||||
($langs->transnoentities("ThirdParty").'='.$obj->companyname).';'.
|
||||
($langs->transnoentities("Civility").'='.$langs->transnoentities("Civility".$obj->civilite)),
|
||||
'source_url' => $this->url($obj->id),
|
||||
'source_id' => $obj->id,
|
||||
'source_type' => 'contact'
|
||||
|
||||
@ -163,7 +163,10 @@ class mailing_pomme extends MailingTargets
|
||||
'fk_contact' => $obj->fk_contact,
|
||||
'name' => $obj->name,
|
||||
'firstname' => $obj->firstname,
|
||||
'other' => $langs->transnoentities("Login").'='.$obj->login.';'.$langs->transnoentities("PhonePro").'='.$obj->office_phone,
|
||||
'other' =>
|
||||
($langs->transnoentities("Login").'='.$obj->login).';'.
|
||||
// ($langs->transnoentities("Civility").'='.$obj->civilite).';'.
|
||||
($langs->transnoentities("PhonePro").'='.$obj->office_phone),
|
||||
'source_url' => $this->url($obj->id),
|
||||
'source_id' => $obj->id,
|
||||
'source_type' => 'user'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user