Fix tags and rule groups.

This commit is contained in:
James Cole
2021-03-11 06:29:07 +01:00
parent 75c8ec7c0a
commit 625e31d053
9 changed files with 158 additions and 43 deletions

View File

@@ -139,12 +139,14 @@ class JournalUpdateService
$this->updateField('date');
$this->updateField('order');
$this->transactionJournal->save();
$this->transactionJournal->refresh();
$this->updateCategory();
$this->updateBudget();
$this->updateTags();
$this->updateReconciled();
$this->updateNotes();
$this->updateMeta();
$this->updateCurrency();
@@ -750,4 +752,14 @@ class JournalUpdateService
}
Log::debug('No type field present.');
}
/**
*
*/
private function updateReconciled(): void
{
if (array_key_exists('reconciled', $this->data) && is_bool($this->data['reconciled'])) {
$this->transactionJournal->transactions()->update(['reconciled' => $this->data['reconciled']]);
}
}
}