Try removing your two ’ before and after the number in your range: selection. If you do that, your selection box will not be empty anymore but it will give you the option to choose from all the accounts starting with 5. Your code should be like:
Selecteer hier de rekening geboekte waardevermindering: {% input custom.rekeningen.vw as:account_collection range:5 accounts_var:vw %}{% for rekeningen in vw %}{{ rekeningen.number }} {{ rekeningen.name }} {{ rekeningen.value | currency }}{% assign vwrek = rekeningen.value %}{% endfor %}
I will have a look at that one too. In the meantime, can you check this post about how to post your code in the community in order to be easier to read?
@Wim I had a look at your template. The problem is that to calculate the green dots on a global level, Silverfin computes the templates based on the ‘non input’ version. That means that a line surrounded with {% ic %}{% endic %} will not be taken into account.
So this piece will not be executed when the results are calculated, meaning the accounts will not be used, and you’ll have red dots:
{%ic%}
Selecteer hier de rekening geboekte waardevermindering: {% input custom.rekeningen.vw as:account_collection range:5 accounts_var:vw %} {% for rekeningen in vw %}{{ rekeningen.number }} {{ rekeningen.name }} : {{ rekeningen.value | currency }}{% assign vwrek = rekeningen.value %}{% endfor %}
{%endic%}
The solution here is to either take the input out of the ic tags or assign the accounts var out of the ic tag, for example by doing
The fact that you have two unexplained tags means that Silverfin will look at both items. As the second unexplained is different from 0, it doesn’t matter what the ‘Aanschafwaarde’ one is, it will always turn out to be red.
Could you try and move it out of the comments and see if that resolves it?