CASE: use the type of account in an account collection

With an account collection, we use mostly a range of numbers to define which accounts should be able to be selected :

{% input custom.ev.accounts as:account_collection range:10,11,13,14 %}

resulting in this :

58

but

:bulb: you could also use the type of the accounts. Those are defined here :

So you could adjust your code to this :

{% input custom.ev.accounts as:account_collection range:equity %}

It will result in the same selection, but with that difference you don’t need to add all those different ranges in your code.

Also a default can be used the same way (mind the quotes though) :

{% input custom.ev.accounts as:account_collection range:equity default:'equity' accounts_var:equity %}

These are the possible types :

  • equity
  • liability
  • asset
  • expense
  • income