Adjusting template 'verworpen uitgaven' from 17 to 40%

Hello @Pieter1,

Welcome to the Community!

What you propose, would actually break your details of fiscal years where the 17% would still be applicable.
Just like in our standard template of “Verworpen uitgaven” you’ll need to build code in your template that gets the percentage of 40% where it should be shown.

In our template we did this for example:

{% assign jaar = period.year_end_date | date:'%Y' %}

What we did here, is take the year ( %Y ) out of the period.year_end_date (that is the end date of the book year by the way).
So, if you’re working in Q3 2015, that variable jaar will give 2015 as result (normal book year!). We do this so we can make our template run in every fiscal period (and that change you’re talking about, is for book years after 2016, right?)

So simply put, you could make something like this:

{% if jaar >= '2017' %}
  {% assign auto_perc = 0.40 %}
{% else %}
  {% assign auto_perc = 0.17 %}
{% endif %}

You could change the percentage (which is fixed text in your example) by:

{% assign autokosten_vaa = $1*auto_perc | round %}

However, above code is only to direct you to the correct code, step by step (if you are new to STL, I strongly suggest to take a look here or take a look at how we solved this in our standard template).
Because this is a change that can be done (and we definitely want to guide you there, step by step), but (knowing the fiscal theory behind it), you still have to take into account that if you have a broken book year that ends in 2017, the costs have to be divided in 2016 (to calculate with the old percentage of 17%) and 2017 (for 40%), right ?

Let us know @Pieter1 if above makes sense to you; if not, don’t hesitate and ask here. We’ll try to guide you there.