mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
Fixed a bug where a non-matching journal would keep its recurring transaction.
This commit is contained in:
parent
61eb5b341d
commit
73743721b1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user