Nama ERP DocsNama ERP Docs
Home
Namasoft.com
Data Model
GitHub
Home
Namasoft.com
Data Model
GitHub
  • Home

    • Search
    • Guides

      • List Views
      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • Manufacturing
      • e-commerce integration (Magento)
      • .
    • Examples
    • Reprocessing Transactions
    • Frequently Asked Questions
    • AI Generated Entity Flows Documentation

      • Core
      • Accounting Module
      • AI Module
      • Contracting Module
      • CRM Module
      • EGTax Reader Module
      • Freight Management System Module
      • Hospital Management System Module
      • HR Module

        • CalcBasicSalaryForNetSalary
        • EACalComponentFromLoan
        • EAChangeEmployeeStateFromFiringHandler
        • EAChangeEmployeeStateHandler
        • EAClearFromDateIfFromTimeEmpty
        • EAClearToDateIfToTimeEmpty
        • EACopySalaryStructureToJobOffer
        • EACopySalaryStructureToUpdateEmpInfo
        • EADSCNormalizeTimeAttendance
        • EAEmpAttendanceSysEntryCalculator
        • EAGenSalarySheet
        • EAHealthInsuranceOfferReqAction
        • EALiptisSetComponentFromAnotherWithMax
        • EAMakeSingleCheckInCheckOutIfNeeded
        • EAOyoonWorkPlaceUpdateToUpdateInfo
        • EASalaryCostCalculator
        • EASalaryNormalizeAdditions
        • EASalaryNormalizeDeductions
        • EATimeAttendanceFromDBImportIntoDocument
        • EATimeAttendanceFromDBImporter
        • EATimeAttendanceSetDefaultFromTime
        • EATimeAttendanceSetDefaultToTime
        • EAUpdateEmployeeResidencyRenewDate
        • SetAttendanceToFixedTimeIfEmpty
        • TimeAttendanceAddExtraHoursToEmpty
        • TimeAttendanceRemoveEmptyTimeLines
        • .
      • e-commerce Integration Module
      • Manufacturing Module
      • POS Module
      • Real Estate Module
      • Service Center Module
      • Supply Chain Module
      • .
    • Release Notes

      • 2016
      • 2017
      • 2018
      • 2019
      • 2020
      • 2021
      • 2022
      • 2025
      • .
    • Video Tutorials

      • Supply Chain Videos
      • Report Wizard Videos
      • Human Resources Videos
      • .

EATimeAttendanceSetDefaultToTime

This document was generated using Claude.ai

Overview

Automatically sets punch-out (to) times for time attendance records that have missing end times. Uses employee work schedules to determine appropriate default end times based on shift patterns and existing punch-in times.

When This Action Runs

Manual execution for fixing incomplete time attendance records, typically used during payroll processing or attendance data cleanup when employees have punch-in times but missing punch-out times.

How It Works

  1. Identifies incomplete records - Finds time attendance lines with missing to dates/times
  2. Retrieves work schedules - Gets employee work day patterns and shift times
  3. Matches shift patterns - Finds appropriate work time slots based on existing punch-in times
  4. Calculates distances - Compares shift start times with recorded punch-in times
  5. Sets end times - Assigns shift end times to missing to time fields
  6. Handles day wrapping - Adjusts dates for shifts that span multiple days
  7. Validates duration - Removes entries that exceed maximum continuous attendance limits

Parameters

Parameter 1: Criteria Code (For Employee) (Optional) - Employee selection criteria for filtering which employees to process

Parameter 2: Calc Only If Workday (Optional) - "true" to process only on scheduled work days, "false" to process all days

Parameter 3: Max Distance In Hours (Optional) - Maximum difference in hours between shift start time and actual punch-in time

Database Tables Affected

  • TimeAttendanceLine - Updates to date and to time fields for incomplete records
  • Employee Work Schedules - Reads work day patterns and shift definitions
  • HR Configuration - References maximum continuous attendance settings

Module: hr

Full Class Name: com.namasoft.modules.humanresource.utils.actions.EATimeAttendanceSetDefaultToTime

Related Actions:

  • EATimeAttendanceSetDefaultFromTime - Sets default punch-in times for missing start times
Edit On github
Last Updated:: 3/18/26, 11:30 PM
Prev
EATimeAttendanceSetDefaultFromTime
Next
EAUpdateEmployeeResidencyRenewDate