@@ -172,6 +172,10 @@ class CreditHistory extends ActiveRecordCommon | |||
*/ | |||
public function save($runValidation = true, $attributeNames = NULL) | |||
{ | |||
if($this->amount > -0.01 && $this->amount < 0.01) { | |||
return false; | |||
} | |||
// initialisation du commentaire avant sauvegarde | |||
$this->comment .= $this->getStrComment() ; | |||