{% extends "base.html" %}{% block title %}Attendance Finalization{% endblock %}{% block content %}

Attendance Finalization

Payroll can use a month only after attendance is reconciled and finalized.

Finalize Month

Finalization reconciles service dates, holidays/weekly offs, approved leave, device/manual attendance and missing workdays. If the effective company policy says incomplete punches must block close, the period cannot be finalized until those exceptions are corrected.
{% csrf_token %}{{ form.as_p }}
{% if preview_exceptions %}

Current-month exception preview

{{ preview_company }} · {{ preview_year }}-{{ preview_month|stringformat:'02d' }}
{% for x in preview_exceptions %}{% endfor %}
EmployeeDateExceptionDetail
{{ x.employee }}{{ x.date }}{{ x.type }}{{ x.detail }}
{% endif %}
{% for p in periods %}{% empty %}{% endfor %}
CompanyPeriodStatusFinalizedControlled Reopen
{{ p.company.name }}{{ p.year }}-{{ p.month|stringformat:'02d' }}{{ p.status }}{{ p.finalized_at|default:'—' }}{% if p.status == 'FINALIZED' %}
{% csrf_token %}
{% else %}—{% endif %}
No attendance periods finalized yet.
{% endblock %}