Commit 80ea289c authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix : Erreur lors de la génération de document sous certaines condition quand le montant est NULL

parent 8181bc48
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -504,7 +504,11 @@ class Activity implements ResourceInterface

    public function getPercentSpent()
    {
        if( $this->getAmount() ){
            return 100 / $this->getAmount() * abs($this->getTotalSpent());
        } else {
            return 0;
        }
    }

    public function getRemainder()