{% load static i18n horillafilters %}
{% if employee.employee_work_info.company_id %}

{{employee.employee_work_info.company_id}}

{{employee.employee_work_info.company_id.address}} {{employee.employee_work_info.company_id.country}} {{employee.employee_work_info.company_id.state}}, {{employee.employee_work_info.company_id.city}} {{employee.employee_work_info.company_id.zip}}

{% else %}

{{company}} - Headquarters

{{company.address}} {{company.country}} {{company.state}}, {{company.city}} {{company.zip}}

{% endif %}

{{month_start_name}} {% trans "to" %} {{month_end_name}} {% trans "Payslip" %}

{% trans "Employee Netpay :" %}

{{net_pay|floatformat:2|currency_symbol_position}}

{% trans "Employee ID :" %} {{employee.badge_id}} {% trans "Employee Name :" %} {{employee}}
{% trans "Department :" %} {{employee.employee_work_info.department_id.department}} {% trans "Bank Acc./Cheque No :" %} {{employee.employee_bank_details.account_number}}
{% for allowance in all_allowances %} {% endfor %}
{% trans "Allowance" %} {% trans "Amount" %}
{% trans "Basic Pay" %} {{basic_pay|floatformat:2|currency_symbol_position}}
{{allowance.title}} {{allowance.amount|floatformat:2|currency_symbol_position}}
{% trans "Total Gross Pay" %} {{gross_pay|floatformat:2|currency_symbol_position}}
{% for deduction in basic_pay_deductions %} {% endfor %} {% for deduction in gross_pay_deductions %} {% endfor %} {% for deduction in pretax_deductions %} {% endfor %} {% for deduction in post_tax_deductions %} {% endfor %} {% for deduction in tax_deductions %} {% endfor %} {% for deduction in net_deductions %} {% endfor %}
{% trans "Deducation" %} {% trans "Amount" %}
{% trans "Loss of Pay" %} {{loss_of_pay|floatformat:2|currency_symbol_position}}
{{deduction.title}} {{deduction.amount|floatformat:2|currency_symbol_position}}
{{deduction.title}} {{deduction.amount|floatformat:2|currency_symbol_position}}
{{deduction.title}} {{deduction.amount|floatformat:2|currency_symbol_position}}
{{deduction.title}} {{deduction.amount|floatformat:2|currency_symbol_position}}
{% trans "Federal Tax" %} {{federal_tax|floatformat:2|currency_symbol_position}}
{{deduction.title}} {{deduction.amount|floatformat:2|currency_symbol_position}}
{{deduction.title}} {{deduction.amount|floatformat:2|currency_symbol_position}}
{% trans "Total Deductions" %} {{total_deductions|floatformat:2|currency_symbol_position}}