Account search fixed.

This commit is contained in:
James Cole
2020-08-28 11:24:55 +02:00
parent 63794cab07
commit 093f34b7a8
26 changed files with 157 additions and 996 deletions

View File

@@ -45,30 +45,6 @@ class AppendNotes implements ActionInterface
$this->action = $action;
}
/**
* @param TransactionJournal $journal
* @deprecated
* @codeCoverageIgnore
*
* @return bool
*/
public function act(TransactionJournal $journal): bool
{
$dbNote = $journal->notes()->first();
if (null === $dbNote) {
$dbNote = new Note;
$dbNote->noteable()->associate($journal);
}
$notes = $dbNote->text;
Log::debug(sprintf('RuleAction AppendNotes appended "%s" to "%s".', $this->action->action_value, $notes));
$notes .= $this->action->action_value;
$dbNote->text = $notes;
$dbNote->save();
$journal->save();
return true;
}
/**
* @inheritDoc
*/