Loading module/Oscar/src/Oscar/Entity/Activity.php +5 −1 Original line number Diff line number Diff line Loading @@ -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() Loading Loading
module/Oscar/src/Oscar/Entity/Activity.php +5 −1 Original line number Diff line number Diff line Loading @@ -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() Loading