{% extends "central_management_base.html" %} {% load static %} {% load crispy_forms_tags %} {% block title %} Employee Projection Report {% endblock title %} {% block Style %} {% endblock Style %} {% block MainContent %}
{% if messages %} {% for message in messages %} {% endfor %} {% endif %}
{% csrf_token %}
Employee Projection report
{{form.parent_branch|as_crispy_field}}
{% if company_info %}

{{ company_info.name_en }}

{{ company_info.address_details }}

{{report_month}} {{report_year}}{{eid_bonus_list.created_date}}

Employee Projection report  -   {{total_manpower}}

{% comment %} {{department_temp}} {% endcomment %} {% for result in results %} {% if not result.is_factory %} {% if result.head_office_department %}

{% for department in result.head_office_department %} {% for desg in department.designations %} {% for employee in desg.employees %} {% if forloop.first %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Designation Authorization Actual Short/Excess Average Salary Name Designation Joining Date Salary Remarks
{{ department.department_name }}
{{ desg.designation_name }} {{ desg.authorization }} {{ desg.actual }} {{ desg.difference }} {{ desg.average_salary }}{{ employee.name }} {{ employee.designation }} {{ employee.joining_date }} {{ employee.gross_salary }} {% if employee.over_time == 'Eligible' %} OT Eligible Employee {% endif %}
{% endif %} {% else %}

{% if result.non_prodactive_non_ot_department %}

{% for department in result.non_prodactive_non_ot_department %} {% for desg in department.designations %} {% for employee in desg.employees %} {% if forloop.first %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Designation Authorization Actual Short/Excess Average Salary Name Designation Joining Date Salary Remarks
{{ department.department_name }}
{{ desg.designation_name }} {{ desg.authorization }} {{ desg.actual }} {{ desg.difference }} {{ desg.average_salary }}{{ employee.name }} {{ employee.designation }} {{ employee.joining_date }} {{ employee.gross_salary }} {% if employee.over_time == 'Eligible' %} OT Eligible Employee {% endif %}
{% endif %} {% if result.non_prodactive_ot_department %}

{% for department in result.non_prodactive_ot_department %} {% for desg in department.designations %} {% for employee in desg.employees %} {% if forloop.first %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Designation Authorization Actual Short/Excess Average Salary Name Designation Joining Date Salary Remarks
{{ department.department_name }}
{{ desg.designation_name }} {{ desg.authorization }} {{ desg.actual }} {{ desg.difference }} {{ desg.average_salary }}{{ employee.name }} {{ employee.designation }} {{ employee.joining_date }} {{ employee.gross_salary }} {% if employee.over_time == 'Ineligible' %} OT Ineligible Employee {% endif %}
{% endif %} {% if result.prodactive_non_ot_department %}

{% for department in result.prodactive_non_ot_department %} {% for desg in department.designations %} {% for employee in desg.employees %} {% if forloop.first %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Designation Authorization Actual Short/Excess Average Salary Name Designation Joining Date Salary Remarks
{{ department.department_name }}
{{ desg.designation_name }} {{ desg.authorization }} {{ desg.actual }} {{ desg.difference }} {{ desg.average_salary }}{{ employee.name }} {{ employee.designation }} {{ employee.joining_date }} {{ employee.gross_salary }} {% if employee.over_time == 'Eligible' %} OT Eligible Employee {% endif %}
{% endif %} {% if result.prodactive_ot_department %}

{% for department in result.prodactive_ot_department %} {% for desg in department.designations %} {% for employee in desg.employees %} {% if forloop.first %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
Designation Authorization Actual Short/Excess Average Salary Name Designation Joining Date Salary Remarks
{{ department.department_name }}
{{ desg.designation_name }} {{ desg.authorization }} {{ desg.actual }} {{ desg.difference }} {{ desg.average_salary }}{{ employee.name }} {{ employee.designation }} {{ employee.joining_date }} {{ employee.gross_salary }} {% if employee.over_time == 'Ineligible' %} OT Ineligible Employee {% endif %}
{% endif %}
{% endif %} {% endfor %}
{% endif %} {% endblock MainContent %} {% block meassage %} {% include 'notifications/notifications.html' %} {% endblock meassage %} {% block JS %} {% endblock JS %}