Fixed a bug where a non-matching journal would keep its recurring transaction.

This commit is contained in:
James Cole 2014-11-20 11:36:53 +01:00
parent 61eb5b341d
commit 73743721b1

View File

@ -20,6 +20,7 @@ class TransactionJournal
$repository = \App::make('FireflyIII\Database\Recurring');
$set = $repository->get();
/** @var \RecurringTransaction $entry */
foreach ($set as $entry) {
$repository->scan($entry, $journal);
@ -41,6 +42,8 @@ class TransactionJournal
/** @var \FireflyIII\Database\Recurring $repository */
$repository = \App::make('FireflyIII\Database\Recurring');
$set = $repository->get();
$journal->recurring_transaction_id = null;
$journal->save();
/** @var \RecurringTransaction $entry */
foreach ($set as $entry) {