Fix and expand tests for #2723

This commit is contained in:
James Cole
2019-12-26 11:06:38 +01:00
parent c23f16739c
commit fc8400cdf9
20 changed files with 200 additions and 59 deletions

View File

@@ -75,7 +75,7 @@ final class FromAccountStarts extends AbstractTrigger implements TriggerInterfac
$repository = app(JournalRepositoryInterface::class);
$source = $repository->getSourceAccount($journal);
$search = strtolower($this->triggerValue);
$part = substr($source->name, 0, strlen($search));
$part = strtolower(substr($source->name, 0, strlen($search)));
if ($part === $search) {
Log::debug(