Sfoglia il codice sorgente

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

refactoring
Guillaume 1 anno fa
parent
commit
b8cd8bce23
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      common/models/CreditHistory.php

+ 4
- 0
common/models/CreditHistory.php Vedi 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…
Annulla
Salva