Some expansion on the index of repeated expenses, and the first reference to the show page.

This commit is contained in:
James Cole
2014-11-23 06:29:29 +01:00
parent 7336367eff
commit 4456ef2326
5 changed files with 23 additions and 10 deletions

View File

@@ -205,10 +205,14 @@ class Piggybank
*/
public function validateRepeatedExpenses()
{
if(!\Auth::check()) {
return;
}
/** @var \FireflyIII\Database\RepeatedExpense $repository */
$repository = \App::make('FireflyIII\Database\RepeatedExpense');
$list = $repository->get();
$list = $repository->get();
$today = Carbon::now();
/** @var \Piggybank $entry */
foreach ($list as $entry) {
@@ -225,7 +229,7 @@ class Piggybank
$repetition->save();
}
// then continue and do something in the current relevant timeframe.
$today = Carbon::now();
$currentTarget = clone $target;
$currentStart = null;
while ($currentTarget < $today) {
@@ -243,7 +247,6 @@ class Piggybank
}
}
}
}