{% load i18n %} {% load static horillafilters %}{% include "filter_tags.html" %}
{% trans "Rejected" %} {% trans "Approved" %} {% trans "Requested" %}
{% if reimbursements %}
{% for req in reimbursements %}
{% comment %}
{{ req.get_type_display }}
{% endcomment %}
{{ req.get_status_display }}
{% if req.status != "approved" %} {% endif %} {% if perms.payroll.delete_reimbursement %} {% endif %}
{{ req.employee_id }} {{req.employee_id.get_department }} / {{ req.employee_id.get_job_position }}

{{ req.title }}

{{ req.description }}.

{% trans 'Allowance on' %} {{ req.allowance_on }} {% if req.type == 'reimbursement' %} {% trans 'View Attachments' %} {% endif %} {% if perms.payroll.change_reimbursement %}
{% if req.type == 'reimbursement' %}

{% elif req.type == 'bonus_encashment' %}

{% trans 'Requsted for' %} {{ req.bonus_to_encash }} {% trans 'Bonus points to encash.' %}

{% else %}

{% trans 'Requsted for total' %} {{ req.ad_to_encash|add:req.cfd_to_encash }} {% trans 'days' %} {% trans 'days to encash.' %}

{% endif %}
{% if req.status != "approved" and req.status != "rejected" %} {% else %} {% endif %}
{% endif %}
{% endfor %}
{% trans 'Page' %} {{ reimbursements.number }} {% trans 'of' %} {{ reimbursements.paginator.num_pages }}.
{% else %}
{% trans "No search result found!" %}
{% endif %}
{% if leave_encashments %}
{% for req in leave_encashments %}
{% comment %}
{{ req.get_type_display }}
{% endcomment %}
{{ req.get_status_display }}
{% if req.status != "approved" %} {% endif %} {% if perms.payroll.delete_reimbursement %} {% endif %}
{{ req.employee_id }} {{req.employee_id.get_department }} / {{ req.employee_id.get_job_position }}

{{ req.title }}

{{ req.description }}.

{% trans 'Allowance on' %} {{ req.allowance_on }} {% if req.type == 'reimbursement' %} {% trans 'View Attachments' %} {% endif %} {% if perms.payroll.change_reimbursement %}
{% if req.type == 'reimbursement' %}

{% elif req.type == 'bonus_encashment' %}

{% trans 'Requsted for' %} {{ req.bonus_to_encash }} {% trans 'Bonus points to encash.' %}

{% else %}

{% trans 'Requsted for total' %} {{ req.ad_to_encash|add:req.cfd_to_encash }} {% trans 'days' %} {% trans 'days to encash.' %}

{% endif %}
{% if req.status != "approved" and req.status != 'rejected' %} {% else %} {% endif %}
{% endif %}
{% endfor %}
{% trans 'Page' %} {{ leave_encashments.number }} {% trans 'of' %} {{ leave_encashments.paginator.num_pages }}.
{% else %}
{% trans "No search result found!" %}
{% endif %}
{% if bonus_encashments %}
{% for req in bonus_encashments %}
{% comment %}
{{ req.get_type_display }}
{% endcomment %}
{{ req.get_status_display }}
{% if req.status != "approved" %} {% endif %} {% if perms.payroll.delete_reimbursement %} {% endif %}
{{ req.employee_id }} {{req.employee_id.get_department }} / {{ req.employee_id.get_job_position }}

{{ req.title }}

{{ req.description }}.

{% trans 'Allowance on' %} {{ req.allowance_on }} {% if req.type == 'reimbursement' %} {% trans 'View Attachments' %} {% endif %} {% if perms.payroll.change_reimbursement %}
{% if req.type == 'reimbursement' %}

{% elif req.type == 'bonus_encashment' %}

{% trans 'Requsted for' %} {{ req.bonus_to_encash }} {% trans 'Bonus points to encash.' %}

{% else %}

{% trans 'Requsted for total' %} {{ req.ad_to_encash|add:req.cfd_to_encash }} {% trans 'days' %} {% trans 'days to encash.' %}

{% endif %}
{% if req.status != "approved" and req.status != 'rejected' %} {% else %} {% endif %}
{% endif %}
{% endfor %}
{% trans 'Page' %} {{ bonus_encashments.number }} {% trans 'of' %} {{ bonus_encashments.paginator.num_pages }}.
{% else %}
{% trans "No search result found!" %}
{% endif %}