{% extends "base_authenticated.html" %} {% block title %}Review Duplicate Records - {{ COMPANY_NAME }}{% endblock %} {% block extra_head %} {% endblock %} {% block page_title %}Review Duplicate Records{% endblock %} {% block content %}

Review Duplicate Records

The following records already exist in the system. Please review and select which ones you want to import anyway.

File: {{ filename }}

Review duplicate records before importing

{{ analysis.total_records }}
Total Records in File
{{ analysis.new_records }}
New Records
{{ analysis.duplicate_records }}
Duplicate Records
0 duplicate record(s) selected to import
{% if analysis.duplicate_records > 0 %}
{% for duplicate in analysis.duplicates %}
Row {{ duplicate.row_number }}

{{ duplicate.new_record.employee_name }} (ID: {{ duplicate.new_record.employee_id }})

New Record (From File)

Employee ID: {{ duplicate.new_record.employee_id }}
Name: {{ duplicate.new_record.employee_name }}
Date: {{ duplicate.new_record.attendance_date }}
Time: {{ duplicate.new_record.attendance_time }}
Location: {{ duplicate.new_record.location_name }}
Action: {{ duplicate.new_record.action_description }}
{% if duplicate.new_record.platform %}
Platform: {{ duplicate.new_record.platform }}
{% endif %} {% if duplicate.new_record.event_description %}
Event: {{ duplicate.new_record.event_description }}
{% endif %} {% if duplicate.new_record.recorded_address %}
Address: {{ duplicate.new_record.recorded_address }}
{% endif %}

Existing Record (In System)

Employee ID: {{ duplicate.existing_record.employee_id }}
Name: {{ duplicate.existing_record.employee_name }}
Date: {{ duplicate.existing_record.attendance_date }}
Time: {{ duplicate.existing_record.attendance_time }}
Location: {{ duplicate.existing_record.location_name }}
Action: {{ duplicate.existing_record.action_description }}
{% if duplicate.existing_record.platform %}
Platform: {{ duplicate.existing_record.platform }}
{% endif %} {% if duplicate.existing_record.event_description %}
Event: {{ duplicate.existing_record.event_description }}
{% endif %} {% if duplicate.existing_record.recorded_address %}
Address: {{ duplicate.existing_record.recorded_address }}
{% endif %}
Import Date: {{ duplicate.existing_record.import_date.strftime('%Y-%m-%d %H:%M') if duplicate.existing_record.import_date else 'Unknown' }}
{% if duplicate.existing_record.import_source %}
Import Source: {{ duplicate.existing_record.import_source }}
{% endif %}
{% endfor %}
{% else %}

No Duplicates Found

All records in the file are unique. You can proceed with the import.

Back to Import
{% endif %}
{% endblock %}