{% extends 'base_admin.html.twig' %} {% block title %}Payments Check{% endblock %} {% block body %}
{% for month in monthly_date_period %} | {{ month.format('M-Y') }} | {% endfor %}
---|---|
{{ employee.firstName }} {{ employee.lastName }} | {% for month in monthly_date_period %} {% if employer is not null %} {% set allPayments = paymentService.getCountAmountPaidForMonthAndEmployee(employee, month, employer) %} {% else %} {% set allPayments = paymentService.getCountAmountPaidForMonthAndEmployeeAllEmployers(employee, month) %} {% endif %}{% if allPayments |length > 1 %} {% if employer is not null %} {{ paymentService.getAmountPaidForMonthAndEmployee(employee, month, employer) | number_format(2) }}({{ allPayments | length }}) {% else %} {{ paymentService.getAmountPaidForMonthAndEmployeeAllEmployers(employee, month) | number_format(2) }}({{ allPayments | length }}) {% endif %} {% else %} {% if employer is not null %} {{ paymentService.getAmountPaidForMonthAndEmployee(employee, month, employer) | number_format(2) }} {% else %} {{ paymentService.getAmountPaidForMonthAndEmployeeAllEmployers(employee, month) | number_format(2) }} {% endif %} {% endif %} | {% endfor %}