CASE: reference payable taxes from template taxes calculation (BE template)

Let’s say we want to create a template in which we detail the done work we did in the working papers, and one of the segments is to show if taxes (done in our Silverfin standard reconciliation template Tax Calculation) are payable or not, eg:

The code to built this, is found here:

{% comment %}the result of payable tax or not is stored in the result tag "vennootschapsbelasting" in the template with handle "belastingberekening"{% endcomment %}
{% assign tax_calc = period.reconciliations.belastingberekening %}

{% comment %}check if the template "belastingberekening" exist or not - if not, show a warning. if so, link to the template so users can get to check out the template{% endcomment %}
{% if tax_calc != blank %} {% comment %}template exists{% endcomment %}
  {% ic %}{::infotext}
    How the taxes were calculated, are found in the reconciliation {% linkto tax_calc %}taxes{% endlinkto %}.
  {:/infotext}{% endic %}
{% else %}
  {% ic %}{::warningtext}
    The template taxes is missing from the working papers and needs to be added in order to display the needed text below. 
  {:/warningtext}{% endic %}
{% endif %}

{% comment %}when the result tag "vennootschapsbelasting" is more than 0, we consider it as payable taxes. if not, it is receivable taxes{% endcomment %}
{% assign tax = tax_calc.results.vennootschapsbelasting %}

---

->**Fiscalilty part**<-

---

{% if tax > 0 %}
Based upon the calculation done in the {% linkto tax_calc %}taxes calculation{% endlinkto %}, the amount of payable taxes are: **{{ tax | currency }}**. 
{% else %}
Based upon the calculation done in the {% linkto tax_calc %}taxes calculation{% endlinkto %}, the amount of receivable taxes are: **{{ -tax | currency }}**. 
{% endif %}

Be sure to check this case as well, as it explains how result tags work: