{% load i18n %} {% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% endif %}

{% trans "Employee Details" %}

{% if position == "prefix" %} {{ currency }} {{ net_pay|floatformat:2 }} {% else %} {{ net_pay|floatformat:2 }} {{ currency }} {% endif %} {% trans "Employee Net Pay" %}
{% if position == "prefix" %} {% trans "Actual Basic Pay" %} : {{currency}} {{instance.contract_wage}} {% else %} {% trans "Actual Basic Pay" %} : {{instance.contract_wage}} {{currency}} {% endif %} {% trans "Paid Days" %} : {{paid_days}} {% trans "LOP Days" %} : {{unpaid_days}} {% trans "Updated Basic Pay" %} {% if position == "prefix" %} : {{currency}} {{basic_pay|floatformat:2}} {% else %} : {{basic_pay|floatformat:2}} {{currency}} {% endif %}
{% trans "The payslip is calculated based on the updated basic pay" %}
{% if position == "prefix" %} {% else %} {% endif %} {% for allowance in allowances %} {% if position == "prefix" %} {% else %} {% endif %} {% endfor %} {% if position == "prefix" %} {% else %} {% endif %}
{% trans "Allowances" %} {% trans "Amount" %} {% if perms.payroll.add_allowance and instance.status != "paid" %} {% endif %}
{% trans "Basic Pay" %} {{currency}} {{basic_pay|floatformat:2}} {{basic_pay|floatformat:2}} {{currency}}
{{allowance.title}} {{currency}} {{allowance.amount|floatformat:2}} {{allowance.amount|floatformat:2}} {{currency}}
{% trans "Total Gross Pay" %} {{currency}} {{gross_pay|floatformat:2}} {{gross_pay|floatformat:2}} {{currency}}
{% if position == "prefix" %} {% else %} {% endif %} {% for deduction in basic_pay_deductions %} {% if position == "prefix" %} {% else %} {% endif %} {% endfor %} {% for deduction in gross_pay_deductions %} {% if position == "prefix" %} {% else %} {% endif %} {% endfor %} {% for deduction in pretax_deductions %} {% if position == "prefix" %} {% else %} {% endif %} {% endfor %} {% for deduction in post_tax_deductions %} {% if position == "prefix" %} {% else %} {% endif %} {% endfor %} {% if position == "prefix" %} {% else %} {% endif %} {% for deduction in tax_deductions %} {% if position == "prefix" %} {% else %} {% endif %} {% endfor %} {% for deduction in net_deductions %} {% if position == "prefix" %} {% else %} {% endif %} {% endfor %} {% if position == "prefix" %} {% else %} {% endif %}
{% trans "Deductions" %} {% trans "Amount" %} {% if perms.payroll.add_deduction and instance.status != "paid" %} {% endif %}
{% trans "Loss of Pay" %} {{currency}} {{loss_of_pay|floatformat:2}} {{loss_of_pay|floatformat:2}} {{currency}}
{{deduction.title}} {{currency}} {{deduction.amount|floatformat:2}} {{deduction.amount|floatformat:2}} {{currency}}
{{deduction.title}} {{currency}} {{deduction.amount|floatformat:2}} {{deduction.amount|floatformat:2}} {{currency}}
{{deduction.title}} {{currency}} {{deduction.amount|floatformat:2}} {{deduction.amount|floatformat:2}} {{currency}}
{{deduction.title}} {{currency}} {{deduction.amount|floatformat:2}} {{deduction.amount|floatformat:2}} {{currency}}
{% trans "Federal Tax" %} {{currency}} {{federal_tax|floatformat:2}} {{federal_tax|floatformat:2}} {{currency}}
{{deduction.title}} {{currency}} {{deduction.amount|floatformat:2}} {{deduction.amount|floatformat:2}} {{currency}}
{{deduction.title}} {{currency}}{{deduction.amount|floatformat:2}} {{currency}}{{deduction.amount|floatformat:2}}
{% trans "Total Deductions" %} {{currency}} {{total_deductions|floatformat:2}} {{total_deductions|floatformat:2}} {{currency}}

{% trans "Total Net Payable" %}

{% trans "Gross Earnings - Total Deductions" %}

{% if position == "prefix" %} {{currency}} {{net_pay|floatformat:2}} {% else %} {{net_pay|floatformat:2}} {{currency}} {% endif %}