{% extends "base.html" %} {% load static %} {% block title %}Delete Time Entry - HR{% endblock %} {% block content %}

Delete Time Entry Confirmation Required

Confirm Time Entry Deletion

Warning

You are about to delete this time entry. This action cannot be undone and will affect payroll calculations and attendance records.

Time Entry Details:
Employee: {{ object.employee.get_full_name }}
Employee ID: {{ object.employee.employee_id }}
Department: {{ object.employee.department.name }}
Date: {{ object.date|date:"M d, Y" }}
Day of Week: {{ object.date|date:"l" }}
Time Details:
Clock In: {{ object.clock_in|time:"H:i"|default:"Not recorded" }}
Clock Out: {{ object.clock_out|time:"H:i"|default:"Not recorded" }}
Break Duration: {{ object.break_duration|default:"0" }} minutes
Total Hours: {{ object.total_hours|floatformat:2 }} hours
Status: {{ object.get_status_display }}
{% if object.notes %}
Entry Notes:
{{ object.notes|linebreaks }}
{% endif %}
Impact Assessment
  • Payroll: This time entry contributes {{ object.total_hours|floatformat:2 }} hours to payroll calculations
  • Attendance: Employee's attendance record for {{ object.date|date:"M d, Y" }} will be affected
  • Overtime: {% if object.is_overtime %}This entry includes {{ object.overtime_hours|floatformat:2 }} overtime hours{% else %}No overtime impact{% endif %}
  • Reports: Time tracking reports and analytics will be updated
  • Audit Trail: Deletion will be logged for compliance purposes
{% if object.status == 'APPROVED' %}
Approved Entry Warning

This time entry has already been approved. Deleting it will:

  • Remove approved hours from payroll calculations
  • Affect already processed or pending payroll
  • Require supervisor re-approval if recreated
  • Impact compliance and audit records
{% endif %} {% if object.is_overtime %}
Overtime Hours Warning

This entry includes {{ object.overtime_hours|floatformat:2 }} overtime hours. Deleting it will affect overtime calculations and may impact compliance with labor regulations.

{% endif %} {% if object.in_processed_payroll %}
Payroll Period Warning

This time entry is part of a payroll period that has already been processed. Deleting it may require payroll adjustments and could affect tax calculations.

{% endif %}
{{ object.total_hours|floatformat:2 }}
Total Hours
{{ object.regular_hours|floatformat:2 }}
Regular Hours
{{ object.overtime_hours|floatformat:2 }}
Overtime Hours
${{ object.calculated_pay|floatformat:2 }}
Calculated Pay
Alternative Actions

Consider these alternatives instead of deletion:

{% csrf_token %}
Deletion Confirmation
{% if object.status == 'APPROVED' %}
{% endif %} {% if object.is_overtime %}
{% endif %}
Required for audit and compliance purposes
{% endblock %} {% block js %} {% endblock %}