mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-02 13:39:19 -06:00
commit
e72a483c49
@ -96,6 +96,7 @@ class TriggerController extends Controller
|
||||
$ruleEngine->addOperator(['type' => 'account_id', 'value' => implode(',', $parameters['accounts'])]);
|
||||
}
|
||||
|
||||
|
||||
// file the rule(s)
|
||||
$transactions = $ruleEngine->find();
|
||||
$count = $transactions->count();
|
||||
@ -149,6 +150,7 @@ class TriggerController extends Controller
|
||||
$ruleEngine->addOperator(['type' => 'account_id', 'value' => implode(',', $parameters['accounts'])]);
|
||||
}
|
||||
|
||||
|
||||
// fire the rule(s)
|
||||
$ruleEngine->fire();
|
||||
|
||||
|
@ -152,6 +152,11 @@ class AccountForm
|
||||
return $this->select($name, $grouped, $value, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $types
|
||||
* @param AccountRepositoryInterface|null $repository
|
||||
* @return array
|
||||
*/
|
||||
private function getAccountsGrouped(array $types, AccountRepositoryInterface $repository = null): array
|
||||
{
|
||||
if (null === $repository) {
|
||||
|
@ -247,7 +247,7 @@ class SearchRuleEngine implements RuleEngineInterface
|
||||
$str = sprintf('%s%d', $str, $transaction['transaction_journal_id']);
|
||||
}
|
||||
$key = sprintf('%d%s', $group['id'], $str);
|
||||
Log::debug(sprintf('Return key: %s ', $key));
|
||||
//Log::debug(sprintf('Return key: %s ', $key));
|
||||
|
||||
return $key;
|
||||
}
|
||||
|
@ -8,9 +8,9 @@
|
||||
<div class="checkbox" style="margin-left:2em;">
|
||||
<label>
|
||||
{% if account in selected or (selected|length == 0 and options.select_all == true) %}
|
||||
{{ Html.checkbox(name~'[]',true).id(id) }}
|
||||
{{ Html.checkbox(name~'[]',true, id).id(id) }}
|
||||
{% else %}
|
||||
{{ Html.checkbox(name~'[]',false).id(id) }}
|
||||
{{ Html.checkbox(name~'[]',false, id).id(id) }}
|
||||
{% endif %}
|
||||
{{ account|escape }}
|
||||
</label>
|
||||
|
@ -6,7 +6,6 @@
|
||||
col-sm-4
|
||||
{% endif %}
|
||||
control-label">{{ label }}</label>
|
||||
|
||||
<div class="{% if options.small %}col-sm-4{% else %}col-sm-8{% endif %}">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
|
Loading…
Reference in New Issue
Block a user