mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 13:44:58 -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');
|
$repository = \App::make('FireflyIII\Database\Recurring');
|
||||||
$set = $repository->get();
|
$set = $repository->get();
|
||||||
|
|
||||||
|
|
||||||
/** @var \RecurringTransaction $entry */
|
/** @var \RecurringTransaction $entry */
|
||||||
foreach ($set as $entry) {
|
foreach ($set as $entry) {
|
||||||
$repository->scan($entry, $journal);
|
$repository->scan($entry, $journal);
|
||||||
@ -41,6 +42,8 @@ class TransactionJournal
|
|||||||
/** @var \FireflyIII\Database\Recurring $repository */
|
/** @var \FireflyIII\Database\Recurring $repository */
|
||||||
$repository = \App::make('FireflyIII\Database\Recurring');
|
$repository = \App::make('FireflyIII\Database\Recurring');
|
||||||
$set = $repository->get();
|
$set = $repository->get();
|
||||||
|
$journal->recurring_transaction_id = null;
|
||||||
|
$journal->save();
|
||||||
|
|
||||||
/** @var \RecurringTransaction $entry */
|
/** @var \RecurringTransaction $entry */
|
||||||
foreach ($set as $entry) {
|
foreach ($set as $entry) {
|
||||||
|
Loading…
Reference in New Issue
Block a user