Hi,
We have a table where in one place we have a fori loop. The information in this fori will be used in a result and “moved” to another summarizing template (where we will have text from several modules).
I almost have what I want, but as you can see in the picture below, depending on how long item.company_name_paid_by is, the item.amount_paid is in different places. Is there someway to get these number to align?
{% assign test_SE_array = “” %}
{% fori item in custom.booked_company_paid_by %}
{% capture holder %}{% t “fyll_i_bolagsnamn” %}{% endcapture %}
| {% input item.company_name_paid_by default:item.default_text placeholder:holder %}
{% rollforward item.company_name_paid_by item.default_text %}
| {%=$0+input item.amount_paid as:currency precision:0 placeholder:0 %}
{% rollforward nil item.amount_paid %}
{% newline %}
{% if forloop.first == true %}
{% capture x %}Bolaget har i inkomstdeklarationen för beskattningsåret {{ fy }} mottagit koncernbidrag från följande bolag.{% endcapture %}
{% capture y %}- {{ item.company_name_paid_by }} {{ item.amount_paid }} {% endcapture %}
{% assign test_SE_array = test_SE_array | append:x | append:"
" %}
{% assign test_SE_array = test_SE_array | append:y | append:"
" %}
{% elsif forloop.last == true %}
{% capture y %}- {{ item.company_name_paid_by }} {{ item.amount_paid }} {% endcapture %}
{% assign test_SE_array = test_SE_array | append:"
" | append:“Beloppet/beloppen har redovisats under kod 3.20 i Bolagets inkomstdeklaration.” %}
{% else %}
{% capture y %}- {{ item.company_name_paid_by }} {{ item.amount_paid }} {% endcapture %}
{% assign test_SE_array = test_SE_array | append:y | append:"
" %}
{% endif %}
{% endfori %}
Kind regards,
Anna