Always Portrait in Export mode

Hi,

I want a certain reconciliation template always in portrait on export mode.

I tried {% changeorientation reconciliation.leningen_-_PD %} in detail text, but didn’t work.

{% t= “Activa” fr:“Explication actif” %}
{% t= “Passiva” fr:“Explication passif” %}
{% t= “Kosten” fr:“Frais” %}
{% t= “Opbrengsten” fr:“Produits” %}
{% t= “Fiscale toelichting” fr:“Explication fiscale” %}

{% capture sf_default_detail_template %}
{% raw %}
{% unless current_account.details.count == 0 and current_account.value == 0 %}
{% for detail in current_account.details %}{% if forloop.first %}|-----|----14%-----:|-----14%------:+{% endif %}
| {{detail.title}}{% if detail.description != blank %}
{{detail.description | multiline_table}}{% endif %}{% if detail.custom.document %}
{% input detail.custom.doc as:file %}{% endif %} |{% if current_account.liability_or_income %}{{-1*detail.value | currency}}{% else %}{{detail.value | currency}}{% endif %}|   {% endfor %}
{% endunless %}
{% endraw %}
{% endcapture %}

{% for account_or_text in export.selected_accounts_and_reconciliation_texts.assets.include_zeros_with_details %}

{% if account_or_text.is_account %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Activa” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|------------|------15%------:+{{export.highlight_alt_bg_color}}
| {{ account_or_text.number }} {{ account_or_text.name }} | {{ account_or_text.value | currency }}

{{ account_or_text.rendered_template }}


{:/group}

{% else %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Activa” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

{% changeorientation reconciliation.leningen_-_PD %}

|--------+{{export.highlight_alt_bg_color}}
|{{ account_or_text.name }}

{{ account_or_text.rendered_template }}


{:/group}

{% endif %}

{% endfor %}

{% for account_or_text in export.selected_accounts_and_reconciliation_texts.liabilities.include_zeros_with_details %}

{% if account_or_text.is_account %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Passiva” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|------------|------15%------:+{{export.highlight_alt_bg_color}}
| {{ account_or_text.number }} {{ account_or_text.name }} | {{ -1*account_or_text.value | currency }}

{{ account_or_text.rendered_template }}


{:/group}

{% else %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Passiva” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|--------+{{export.highlight_alt_bg_color}}
|{{ account_or_text.name }}

{{ account_or_text.rendered_template }}


{:/group}

{% endif %}

{% endfor %}

{% for account_or_text in export.selected_accounts_and_reconciliation_texts.revenues.include_zeros_with_details.6 %}

{% if account_or_text.is_account %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Kosten” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|------------|------15%------:+{{export.highlight_alt_bg_color}}
| {{ account_or_text.number }} {{ account_or_text.name }} | {{ account_or_text.value | currency }}

{{ account_or_text.rendered_template }}


{:/group}

{% else %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Kosten” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|--------+{{export.highlight_alt_bg_color}}
|{{ account_or_text.name }}

{{ account_or_text.rendered_template }}


{:/group}

{% endif %}

{% endfor %}

{% for account_or_text in export.selected_accounts_and_reconciliation_texts.revenues.include_zeros_with_details.7 %}

{% if account_or_text.is_account %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation’ %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Opbrengsten” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|------------|------15%------:+{{export.highlight_alt_bg_color}}
| {{ account_or_text.number }} {{ account_or_text.name }} | {{ -1*account_or_text.value | currency }}

{{ account_or_text.rendered_template }}


{:/group}

{% else %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Opbrengsten” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|--------+{{export.highlight_alt_bg_color}}
|{{ account_or_text.name }}

{{ account_or_text.rendered_template }}


{:/group}

{% endif %}

{% endfor %}

{% for account_or_text in export.selected_accounts_and_reconciliation_texts.8 %}

{% if account_or_text.is_account %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Fiscale toelichting” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|------------|------15%------:+{{export.highlight_alt_bg_color}}
| {{ account_or_text.number }} {{ account_or_text.name }} | {{ account_or_text.value | currency }}

{{ account_or_text.rendered_template }}


{:/group}

{% else %}

{% if forloop.first %}
{% if new_page %}{% newpage account_or_text.preferred_orientation %}{% endif %}{% assign new_page = true %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}

{% t “Fiscale toelichting” %}

{% else %}
{% changeorientation account_or_text.preferred_orientation %}
{::group}
{% endif %}

|--------+{{export.highlight_alt_bg_color}}
|{{ account_or_text.name }}

{{ account_or_text.rendered_template }}


{:/group}

{% endif %}

{% endfor %}

Hello @Thijs,

What the {% changeorientation %}does, is going to landscape-mode when there’s a template with more than 7 columns.

So, your reconciliation template will probably have more than 7 columns? Could you check that?

For now, there’s no option to force a detail into portrait, when more than 7 columns.

@sven Ok, thanks for the answer!