Browse Source

[Administration] Utilisateur > Crédit : montant débité 0,00 € #710

refactoring
Guillaume 1 year ago
parent
commit
b8cd8bce23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      common/models/CreditHistory.php

+ 4
- 0
common/models/CreditHistory.php View File

@@ -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() ;

Loading…
Cancel
Save