Hi
I have the following issue:
In the file https://vdl.getsilverfin.com/f/1592/327003/permanent_texts/21376743 there are no data for the year 2015, however data are being shown in the template.
This is the code:
{% stripnewlines %}
{% newline %}
{% ic %}
|—50%—
|---------:#
{% endic %}
{% nic %}
|—50%—
|—15%—:
|---------+
{% endnic %}
{% newline %}
|Bezoldiging boekjaar {{ period.year_end_date | date:"%Y" }}
{% assign bez = #618000+#618100+#618400 %}
|{{ bez | currency }}
{% if bez != 0 %}
{% assign ct_years = ct_years | plus:1 %}
{% endif %}
{% nic %}
|
{% endnic %}
{% newline %}
|Bezoldiging boekjaar {{ period.minus_1y.year_end_date | date:"%Y" }}
{% assign bez_1y = #618000+#618100+#618400:1y %}
|{{ bez_1y | currency }}
{% if bez_1y != 0 %}
{% assign ct_years = ct_years | plus:1 %}
{% endif %}
{% newline %}
|Bezoldiging boekjaar {{ period.minus_2y.year_end_date | date:"%Y" }}
{% assign bez_2y = #618000+#618100+#618400:2y %}
|{{ bez_2y | currency }}
{% if bez_2y != 0 %}
{% assign ct_years = ct_years | plus:1 %}
{% endif %}
{% newline %}
|Bezoldiging boekjaar {{ period.minus_3y.year_end_date | date:"%Y" }}
{% assign bez_3y = #618000+#618100+#618400:3y %}
|{{ bez_3y | currency }}
{% if bez_3y != 0 %}
{% assign ct_years = ct_years | plus:1 %}
{% endif %}
{% newline %}
|Gemiddelde
{% assign gemiddelde_bezoldiging = (bez+bez_1y+bez_2y+bez_3y)/ct_years %}
|***{{ gemiddelde_bezoldiging | currency }}***
{% endstripnewlines %}