mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 21:16:47 +00:00
Removed dead code.
This commit is contained in:
@@ -24,23 +24,6 @@ class PiggyBankRepetition extends Eloquent
|
||||
return ['created_at', 'updated_at', 'targetdate', 'startdate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO remove this method in favour of something in the FireflyIII libraries.
|
||||
*
|
||||
* @return float|int
|
||||
*/
|
||||
public function pct()
|
||||
{
|
||||
$total = $this->piggyBank->targetamount;
|
||||
$saved = $this->currentamount;
|
||||
if ($total == 0) {
|
||||
return 0;
|
||||
}
|
||||
$pct = round(($saved / $total) * 100, 1);
|
||||
|
||||
return $pct;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user