Hi,
probably some small coding mistake for my part:
The assign rangeDDGzonderBTW doesn’t contain the value of the ‘default’ ranges if the user doesn’t change the selected range.
as result: the assign DDGmetBTW is also falsly calculated
I forgot how to fix this.
Can someone help me?
{% newline %}
| {::font size="xs"}{% t "Diensten en diverse goederen zonder BTW" %}{:/font}
{::infotext as="hover"}
{% t "via de **#** kan er geselecteerd worden op welke diensten en diverse goederen er geen BTW gerekend werd." %}
<br>
{% t "deze data wordt gebruikt in rapport *Ratio's*: Dagen leverancierskrediet" %}
{:/infotext}
|{% input custom.range.DDGzonderBTW as:account_collection range:"61" default:"6100,6101,613132,613160,613170,613310,6134,6135,6137,618" %}
{% assign rangeDDGzonderBTW = period.accounts.include_zeros | range:custom.range.DDGzonderBTW%}
{::font size="xs"}{{ rangeDDGzonderBTW | currency }}{:/font}
{% result 'DDGzonderBTW' rangeDDGzonderBTW %}
{% newline %}
{% assign DDGmetBTW = #61-rangeDDGzonderBTW %}
| {::font size="xs"}{% t "BTW te rekenen op diensten en diverse goederen" %}{:/font}
{::infotext as="hover"}
{% t "achterliggende berekening:" %} {{ DDGmetBTW | currency }} {% t "= totaal 61 rekeningen" %} ({{#61 | currency}}) - {{ rangeDDGzonderBTW | currency }}
<br>
{% t "deze data wordt gebruikt in rapport *Ratio's*: Dagen leverancierskrediet" %}
{:/infotext}
|{::font size="xs"}{{ DDGmetBTW | currency }}{:/font}
{% result 'resultDDGmetBTW' DDGmetBTW %}