{% load i18n payslip_tags static %} {% trans "Payslip" %}: {{ employee }} / {{ date_start }} - {{ date_end }}
{% csrf_token %} {{ form.as_p }}
{% trans "Clear payslip" %}

{% trans "Payslip" %}

{% trans "Printed date" %}:
{% now "DATE_FORMAT" %}

{% trans "Period" %}:
{{ date_start|date }} - {{ date_end|date }}

{% trans "HR nr." %}:
{{ employee.hr_number }}

{% trans "Considered as income receipt. Please store it carefully." %}

{{ employee.company }}, {{ employee.company.address }}

{{ employee.get_title_display }}
{{ employee }}
{{ employee.address|linebreaksbr }}

{% for field in employee.extra_fields.all %} {% cycle '' '' '' '' %} {% cycle '' '' '' '' %} {% if forloop.last and not forloop.counter|divisibleby:4 %} {% endif %} {% endfor %}
{% if field.value %}

{{ field.field_type.name }}:
{{ field.value }}

{% endif %}

{% trans "Earnings / Deductions" %}

{% if payments %} {% for field_type in payment_extra_fields %} {% endfor %} {% for payment in payments %} {% for field_type in payment_extra_fields %} {% endfor %} {% endfor %}
{% trans "Payment type" %}{{ field_type.name }}{% trans "Month" %} {% trans "Amount" %}
{{ payment.payment_type.name }}{{ field_type|get_extra_field_value:payment }}{{ payment.date|date:"M Y" }} {{ payment.amount|floatformat:2 }}
{% endif %}

{% trans "Sum earnings" %}: {{ sum|floatformat:2 }}

{% trans "Sum deductions" %}: {{ sum_neg|floatformat:2 }}

{% trans "Period sum" %}

{% trans "Gross earnings" %}:
{{ sum|floatformat:2 }}

{% trans "Payout" %}:

{{ currency }}

{{ sum|add:sum_neg|floatformat:2 }}

{% blocktrans with date=date_end|date %}Year total (until {{ date }}){% endblocktrans %}

{% trans "Gross total" %}:
{{ sum_year|floatformat:2 }}

{% trans "Net total" %}:
{{ sum_year_neg|floatformat:2 }}