mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Some cleanup in the models.
This commit is contained in:
parent
fdf03cd8e2
commit
90ae21d257
@ -35,8 +35,8 @@ class PiggybankReminder extends Reminder
|
|||||||
protected $isSubclass = true;
|
protected $isSubclass = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* This method will render a string telling you something about what to save or something.
|
||||||
* @return string
|
* @return string
|
||||||
* @throws Firefly\Exception\FireflyException
|
|
||||||
*/
|
*/
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
@ -85,7 +85,7 @@ class PiggybankReminder extends Reminder
|
|||||||
$toSave = 0;
|
$toSave = 0;
|
||||||
switch ($piggyBank->reminder) {
|
switch ($piggyBank->reminder) {
|
||||||
case 'day':
|
case 'day':
|
||||||
throw new \Firefly\Exception\FireflyException('No impl day reminder/ PiggyBankReminder Render');
|
$toSave = $left;// / ($diff->days / $piggyBank->reminder_skip);
|
||||||
break;
|
break;
|
||||||
case 'week':
|
case 'week':
|
||||||
$weeks = ceil($diff->days / 7);
|
$weeks = ceil($diff->days / 7);
|
||||||
|
@ -33,5 +33,10 @@ class RecurringTransactionReminder extends Reminder
|
|||||||
{
|
{
|
||||||
protected $isSubclass = true;
|
protected $isSubclass = true;
|
||||||
|
|
||||||
|
public function render()
|
||||||
|
{
|
||||||
|
return '123';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user