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