# Getting results from (Silverfin) template belastingberekening

**URL:** <https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868>\
**Category:** Templates\
**Tags:** result\
**Created:** [May 9, 2018, 10:51am UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868 "2018-05-09T10:51:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [May 9, 2018, 10:51am UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/1 "2018-05-09T10:51:03Z")

</div>

Hi,

Is it possible to change the existing template ‘belastingberekening’ by putting some of the calculated results in a ‘result’ tag so these can be used directly in another template (not made by Silverfin)?

I suppose this can be done by assigning period.reconciliations.BELASTINGBEREKENING.results.landbouw\_index (for example) to a variable …

Thanks!

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [May 9, 2018, 11:11am UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/2 "2018-05-09T11:11:58Z")

</div>

Hey @Bart_Verhaeghe,

Good question tbh.

You should use the “Configuration” option then in the Silverfin-template (which is [here](http://support.getsilverfin.com/article/show/29079-eenmanszaken) explained as well, but for a different template.

 ![15](https://canada1.discourse-cdn.com/flex030/uploads/getsilverfin/original/1X/a5a27d095e23494debd78624ccf3ce44be57a8b5.png)

Above shows me taking the data from the object `custom.belast_begin.onzichtb` (which hasn’t gotten a result-tag in our Silverfin-template (yet)), assign it to a new variable (not necessary) and putting it in a result.  
The extra code you make in this screen, gets added or overwrites existing code in the standard template of Silverfin.

This should work with input-objects just fine, but not if you want the amount of a register ($). Registers are only saved when going through the code from the top to below, while input objects are saved on “database level” (for a lack of using a better description for this).

In this case it gets explained as well :

> [@Case: Configuration ranges rejected charges (verworpen uitgaven)](https://community.silverfin.com/t/case-configuration-ranges-rejected-charges-verworpen-uitgaven/867):
>
> In the silverfin template rejected charges, it is possible to add account ranges by using the hashtag (#). [14] It is however possible to add default account ranges to the template by using the configuration screen. [53] Copy pasting following code in the configuration screen enable the possibility to set default ranges: {% assign range\_categorie = "6,7" %} Remplace range\_categorie by one of the following variables: range\_niet\_aftrekbare\_belastingen range\_gewestelijke\_bel range\_geldbo…

Hope you’re good to go!

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [May 9, 2018, 1:33pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/3 "2018-05-09T13:33:12Z")

</div>

OK thanks Sven, just having a little additional problem here:

The piece of data in which I’m interested is created by an assign statement (name of parameter is ‘belastbaar’).

linking to reconciliations.belastingberekening.results.belastbaar doesn’t work here …

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [May 9, 2018, 1:34pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/4 "2018-05-09T13:34:25Z")

</div>

Could you post the code you’re trying to get from our template @Bart_Verhaeghe, just to be sure?

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [May 9, 2018, 1:38pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/5 "2018-05-09T13:38:50Z")

</div>

OK, in the template ‘belastingberekening’, I added

{% assign belastbaar2 = belastbaar %}  
{% result ‘belastbaar2’ belastbaar2 %}

In my own tempalte, I added:

{% assign LI = period.reconciliations.belastingberekening.results.belastbaar2 %}

belastbaar = {{LI}}

Now if I assign a real value to belastbaar2 (eg 3), then I get a result (3) in my own template. So the problem must be situated in the ‘belastingberekening’-template …

---

<div class="post-metadata">

**Author:** ![SamVanEenoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/samvaneenoo/32/134_2.png) [@SamVanEenoo](https://community.silverfin.com/u/SamVanEenoo)\
**Post date:** [May 9, 2018, 1:38pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/6 "2018-05-09T13:38:56Z")

</div>

@Bart_Verhaeghe

Which result tag do you like to see added?

Kind regards

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [May 9, 2018, 1:40pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/7 "2018-05-09T13:40:07Z")

</div>

Hi Sam,

For the moment, the variable ‘belastbaar’ will do (it’s possible that other parameters will have to be added in the future, but still …).

Thanks!

---

<div class="post-metadata">

**Author:** ![SamVanEenoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/samvaneenoo/32/134_2.png) [@SamVanEenoo](https://community.silverfin.com/u/SamVanEenoo)\
**Post date:** [May 9, 2018, 2:00pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/8 "2018-05-09T14:00:18Z")

</div>

@Bart_Verhaeghe Should be added 🙂

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [May 15, 2018, 7:05am UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/9 "2018-05-15T07:05:37Z")

</div>

Hi Sam,

Has this been added yet?

Thanks!

---

<div class="post-metadata">

**Author:** ![SamVanEenoo](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/samvaneenoo/32/134_2.png) [@SamVanEenoo](https://community.silverfin.com/u/SamVanEenoo)\
**Post date:** [May 15, 2018, 7:09am UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/10 "2018-05-15T07:09:02Z")

</div>

It has.

The name of the result tag is **belastbaar**

Kind regards

Sam

---

<div class="post-metadata">

**Author:** ![Bart\_Verhaeghe](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@Bart\_Verhaeghe](https://community.silverfin.com/u/Bart_Verhaeghe)\
**Post date:** [May 15, 2018, 8:08am UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/11 "2018-05-15T08:08:15Z")

</div>

OK this works. Thanks!

---

<div class="post-metadata">

**Author:** ![wesleyvd](https://avatars.discourse-cdn.com/v4/letter/w/b5e925/32.png) [@wesleyvd](https://community.silverfin.com/u/wesleyvd)\
**Post date:** [June 27, 2018, 12:41pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/12 "2018-06-27T12:41:41Z")

</div>

Hello

Hello belastbaar is a if funtion… Is it also possible to add the result tag with the {%else%} ?

---

<div class="post-metadata">

**Author:** ![robindeclercq](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/robindeclercq/32/472_2.png) [@robindeclercq](https://community.silverfin.com/u/robindeclercq)\
**Post date:** [June 27, 2018, 12:46pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/13 "2018-06-27T12:46:50Z")

</div>

Hi @wesleyvd,

Sure, we will do so!

We will inform you when the result-tag is in place.

Kind regards,  
Robin

---

<div class="post-metadata">

**Author:** ![robindeclercq](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/robindeclercq/32/472_2.png) [@robindeclercq](https://community.silverfin.com/u/robindeclercq)\
**Post date:** [July 4, 2018, 3:01pm UTC](https://community.silverfin.com/t/getting-results-from-silverfin-template-belastingberekening/868/14 "2018-07-04T15:01:32Z")

</div>

Hi @wesleyvd,

Following the above, we would like to inform you that the result tag is in place.

Kind regards,  
Robin
