|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function save($runValidation = true, $attributeNames = NULL) { |
|
|
public function save($runValidation = true, $attributeNames = NULL) { |
|
|
// initialisation du commentaire avant sauvegarde |
|
|
// initialisation du commentaire avant sauvegarde |
|
|
$this->commentaire = $this->getStrCommentaire() ; |
|
|
|
|
|
|
|
|
$this->commentaire .= $this->getStrCommentaire() ; |
|
|
|
|
|
|
|
|
parent::save($runValidation, $attributeNames); |
|
|
parent::save($runValidation, $attributeNames); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getStrCommentaire() { |
|
|
public function getStrCommentaire() { |
|
|
$str = $this->getStrLibelle() ; |
|
|
|
|
|
|
|
|
$str = '' ; |
|
|
|
|
|
if(strlen($this->commentaire)) { |
|
|
|
|
|
$str .= '<br />' ; |
|
|
|
|
|
} |
|
|
|
|
|
$str .= $this->getStrLibelle() ; |
|
|
if(isset($this->commande)) { |
|
|
if(isset($this->commande)) { |
|
|
$str .= '<br />Montant de la commande : '.$this->commande->getMontant(true) ; |
|
|
$str .= '<br />Montant de la commande : '.$this->commande->getMontant(true) ; |
|
|
} |
|
|
} |