141 |
parent::setValF($val); |
parent::setValF($val); |
142 |
if($this->getParameter('maj')==0) { |
if($this->getParameter('maj')==0) { |
143 |
$this->valF["date_reception"]=$this->valF["date_envoi"]; |
$this->valF["date_reception"]=$this->valF["date_envoi"]; |
144 |
|
$this->valF["lu"] = true; |
145 |
} |
} |
146 |
|
|
147 |
// Si un retour d'avis est modifie on passe "lu" a false |
// Si un retour d'avis est modifie on passe "lu" a false |
283 |
$this->addToLog("triggerajouter(): db->getone(\"".$sql."\")", VERBOSE_MODE); |
$this->addToLog("triggerajouter(): db->getone(\"".$sql."\")", VERBOSE_MODE); |
284 |
// |
// |
285 |
$this->valF["date_limite"] = $this->moisdate($this->valF["date_reception"], $delai); |
$this->valF["date_limite"] = $this->moisdate($this->valF["date_reception"], $delai); |
|
$this->valF["lu"] = true; |
|
286 |
// |
// |
287 |
$this->addToMessage(_("delai")." ". |
$this->addToMessage(_("delai")." ". |
288 |
_("retour")." ".$delai." "._("mois")." -> ". |
_("retour")." ".$delai." "._("mois")." -> ". |