Hi there
In some cases you are working with a broken year. For example: 01/10/2017 - 30/09/2018.
In the template “Overeenstemming bezoldiging” we can fill in the remuneration for periods 1/1/17 - 30/9/17, 1/10/17 - 31/12/17 and 1/1/18 - 30/9/18, thanks to tis code:
{% capture year_columns_seperator %}{% for year in period.calendar_years %}{% if forloop.first and first_date_broken %}{% if previous_period.exists and not_first_year %}|{% endif %}{% endif %}|{% endfor %}{% endcapture %}
{% capture def_columns %}|-------|-15%–|{% for year in period.calendar_years %}{% if forloop.first and first_date_broken %}{% if previous_period.exists and not_first_year %}–15%—:|{% endif %}{% endif %}—15%----:|{% endfor %}—15%–:+{% endcapture %}
{% stripnewlines %}
{% newline %}
|
|
{% for year in period.calendar_years %}
{% if forloop.first and first_date_broken %}
{% if previous_period.exists and not_first_year %}
| 01/01/{{ year.start_date | date:‘%Y’ }}
{{ year.start_date-1 | date:‘%d/%m/%Y’ }}
{% endif %}
{% endif %}
| {{ year.start_date | date:‘%d/%m/%Y’ }}
{{ year.end_date | date:‘%d/%m/%Y’ }}
{% endfor %}
| {% t “Totaal boekjaar” %}
{% newline %}
{{ def_columns }}
{% newline %}
To check with “281.20”, I would like to add period “1/10/18-31/12/2018” in the template.
Who can help me?
Tanks in advance!