diff --git a/resources/views/v1/accounts/delete.twig b/resources/views/v1/accounts/delete.twig index bd366b509b..76b61ae2a3 100644 --- a/resources/views/v1/accounts/delete.twig +++ b/resources/views/v1/accounts/delete.twig @@ -33,7 +33,7 @@ {% endif %}
{% endif %} - {% if account.transactions.count > 0 and account.accountType.type == 'Asset account' %} + {% if account.transactions.count() > 0 and account.accountType.type == 'Asset account' %}{{ trans_choice('firefly.save_transactions_by_moving', account.transactions|length ) }}
diff --git a/resources/views/v1/accounts/show.twig b/resources/views/v1/accounts/show.twig index 944083cfe8..9744a83cdf 100644 --- a/resources/views/v1/accounts/show.twig +++ b/resources/views/v1/accounts/show.twig @@ -7,7 +7,7 @@ {% block content %}- {% if bill.transactionjournals.count > 0 %} - {{ Lang.choice('form.bill_keep_transactions', bill.transactionjournals.count,{count: bill.transactionjournals.count}) }} + {% if bill.transactionjournals.count() > 0 %} + {{ Lang.choice('form.bill_keep_transactions', bill.transactionjournals.count(),{count: bill.transactionjournals.count()}) }} {% endif %}
- {% if budget.transactionjournals.count > 0 %} - {{ Lang.choice('form.budget_keep_transactions', budget.transactionjournals.count, {count: budget.transactionjournals.count }) }} + {% if budget.transactionjournals.count() > 0 %} + {{ Lang.choice('form.budget_keep_transactions', budget.transactionjournals.count(), {count: budget.transactionjournals.count() }) }} {% endif %}
diff --git a/resources/views/v1/budgets/index.twig b/resources/views/v1/budgets/index.twig index b296cd689e..1e0b0fa08d 100644 --- a/resources/views/v1/budgets/index.twig +++ b/resources/views/v1/budgets/index.twig @@ -197,7 +197,7 @@ {% endif %}- {% if category.transactionjournals.count > 0 %} - {{ Lang.choice('form.category_keep_transactions', category.transactionjournals.count, {count: category.transactionjournals.count }) }} + {% if category.transactionjournals.count() > 0 %} + {{ Lang.choice('form.category_keep_transactions', category.transactionjournals.count(), {count: category.transactionjournals.count() }) }} {% endif %}
- {% if rule.ruleTriggers.count > 0 %}
+ {% if rule.ruleTriggers.count() > 0 %}
|
- {% if rule.ruleActions.count > 0 %}
+ {% if rule.ruleActions.count() > 0 %}
|