Export disclosure in style

Hey @svalais,

Would you mind posting your code between the so called tildes ` ? See here for more info on how exactly to do this; otherwise the post is overfloaded with no so pretty looking code
I’ve done it now for you though; you can edit your post to see how I did it. :slightly_smiling_face:

Back on topic:

This code :


          {% fori vrije_cost_lijnen in custom.[custfieldname] %}
            | {% input vrije_cost_lijnen.omschrijving placeholder:'' %} 
            | {% $31+input vrije_cost_lijnen.value as:currency as:currency placeholder:'' %} {% assign $33 = vrije_cost_lijnen.value %}
            | {% input vrije_cost_lijnen.vin as:percentage placeholder:'0.00%' %}
              {% if vrije_cost_lijnen.vin == blank %}
                {% assign vin = 1 %}
              {% else %}
                {% assign vin = 1-vrije_cost_lijnen.vin placeholder:'' %}
              {% endif %}
            {% $32+ vin*$33 as:currency %} 
            | {{ $33-1*vin*$33 | currency }} 
          {% newline %}
          {% if forloop.last %}
            |     
            | 
            |     
            |  **{% =$22+ ($11-$12)+($31-$32) as:currency %}** 
          {% result category_key $34 %}|

This line **{% =$22+ ($11-$12)+($31-$32) as:currency %}** is the one you want to display in an export, but take a good look: this line is in an if-statement : if forloop.last . So it’s only shown if you are in the last loop of your forloop. And that forloop is this one :

{% fori vrije_cost_lijnen in custom.[custfieldname] %}

And you’d want the last loop of this one :

{% for cost_category in cost_categories %} 

Is this clear enough for you on how to fix it? Let us known if you’re stuck and I’ll add more info to this issue of course (had me looking for quite a bit there :relaxed: )