Hi, i’m trying to create a custom report to confirm the balance of the current account.
I have 2 issues:
1- I don’t succeed in getting the correct amount for each selected account. The code only makes a sum of all selected accounts. I don’t have the problem for the current year data.
2- When exporting, the PDF-file remains empty.
Thanks!
For now i have the following code:
{% include "parts/translation" %}
{% ic %}
Selecteer rekeningen: {% input custom.accounts.total as:account_collection range:"416,48" accounts_var:accounts_rc %}
{% assign prev_date = period.year_end_date|%d/%m/%Y %}
{% assign new_date = prev_date |retract_years:1 %}
{% endic %}
<table class="usr-bordered usr-width-100">
<thead class="usr-repeated-header">
<tr>
<th class="usr-align-center">**{% t "t_rc" %}**</th>
<th class="usr-align-center">**{% t "t_amount" %} {{ period.year_end_date|date:"%d/%m/%Y" }}**</th>
<th class="usr-align-center">**{% t "t_amount" %} {{ new_date| date: "%d/%m/%Y" }}**</th>
</tr>
</thead>
<tbody>
{%for account in accounts_rc%}
{% assign account_value_py = period.minus_1y.accounts | range:custom.accounts.total %}
<tr>
<td>{{ account.name }}</td>
<td class="usr-align-right">{{ account.value|currency }}</td>
<td class="usr-align-right">{{ account_value_py|currency }}</td>
</tr>
{% endfor %}
</tbody>
</table>```