TimeAttendanceRemoveEmptyTimeLines
This document was generated using Claude.ai
Overview
Removes attendance lines that have no time information. Cleans up time attendance documents by deleting any lines where both check-in (from time) and check-out (to time) are empty, helping maintain clean and meaningful attendance data.
When This Action Runs
Manual execution during attendance data cleanup. Typically used after data imports, bulk updates, or when preparing attendance documents for processing to remove incomplete or placeholder records.
How It Works
- Iterates backwards through lines - Processes from last to first to avoid index issues
- Checks time fields - Examines both from time and to time for each line
- Identifies empty lines - Finds lines where both times are null or empty
- Removes empty lines - Deletes lines with no time information
- Preserves valid lines - Keeps any line with at least one time value
Parameters
No Parameters - This action does not require any input parameters
Database Tables Affected
- TimeAttendanceLine - Removes records with empty time values from the collection
Module: hr
Full Class Name: com.namasoft.modules.humanresource.utils.TimeAttendanceRemoveEmptyTimeLines