More moving stuff around.

This commit is contained in:
James Cole
2016-05-20 11:02:07 +02:00
parent 724f423692
commit 3c3a83330d
30 changed files with 197 additions and 195 deletions

View File

@@ -56,7 +56,7 @@ class SetBudget implements ActionInterface
if (!is_null($budget)) {
$journal->budgets()->sync([$budget->id]);
}
return true;
}
}

View File

@@ -59,7 +59,7 @@ final class FromAccountContains extends AbstractTrigger implements TriggerInterf
foreach (TransactionJournal::sourceAccountList($journal) as $account) {
$fromAccountName .= strtolower($account->name);
}
$search = strtolower($this->triggerValue);
$strpos = strpos($fromAccountName, $search);

View File

@@ -59,7 +59,7 @@ final class FromAccountIs extends AbstractTrigger implements TriggerInterface
foreach (TransactionJournal::sourceAccountList($journal) as $account) {
$name .= strtolower($account->name);
}
$search = strtolower($this->triggerValue);
if ($name == $search) {

View File

@@ -59,8 +59,8 @@ final class ToAccountIs extends AbstractTrigger implements TriggerInterface
foreach (TransactionJournal::destinationAccountList($journal) as $account) {
$toAccountName .= strtolower($account->name);
}
$search = strtolower($this->triggerValue);
$search = strtolower($this->triggerValue);
if ($toAccountName == $search) {
return true;