{% extends "tenant/layouts/base.html" %} {% block title %}Calculate Pay Period{% endblock %} {% block content %}
Calculate Pay Period
Hold Ctrl/Cmd to select multiple.
{% if results %}
Results — {{ period_start.strftime('%b %d') if period_start else '' }}–{{ period_end.strftime('%b %d, %Y') if period_end else '' }}
{% for row in results %} {% endfor %}
StaffTypeHoursBaseCommissionTotal
{{ row.staff.name }} {{ row.calc.pay_type.title() }} {{ "%.1f"|format(row.calc.total_hours) }}h ${{ "%.2f"|format(row.calc.base_amount) }} ${{ "%.2f"|format(row.calc.commission_amount) }} ${{ "%.2f"|format(row.calc.total_amount) }}
Grand Total ${{ "%.2f"|format(results|sum(attribute='calc.total_amount')) }}
{% endif %}
{% endblock %}