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

    • Search
    • Guides

      • Entity Flows
      • الفواتير والضرائب والخصومات
      • Supply Chain
      • 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
        • 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
      • .

EAClearFromDateIfFromTimeEmpty

This document was generated using Claude.ai

Overview

Clears the from date field in time attendance lines when the corresponding from time field is empty. Ensures data consistency by removing orphaned date values that don't have associated time values.

When This Action Runs

Manual execution during time attendance data cleanup or validation processes. Typically used to maintain data integrity when time attendance records have incomplete punch-in information.

How It Works

  1. Iterates through attendance lines - Processes all time attendance lines in the document
  2. Checks from time field - Examines each line's from time value for emptiness
  3. Clears from date - Sets from date to null when from time is empty or null
  4. Maintains consistency - Ensures that date fields don't exist without corresponding time fields

Parameters

No Parameters - This action does not require any input parameters

Database Tables Affected

  • TimeAttendanceLine - Updates from date fields to null when from time is empty

Important Warnings

⚠️ Data Consistency Purpose

  • Designed to maintain logical consistency between date and time fields
  • Prevents scenarios where date exists without corresponding time value
  • Ensures clean data for attendance calculations and reporting

⚠️ Data Loss Implications

  • Permanently removes from date values when from time is empty
  • Original from date information is lost and cannot be recovered
  • Consider backing up data before running this cleanup action

⚠️ Incomplete Attendance Records

  • Only affects attendance lines with missing from time values
  • Does not attempt to populate missing from time values
  • Leaves attendance records incomplete rather than correcting missing times

⚠️ Business Logic Impact

  • May affect attendance calculations that depend on from date values
  • Could impact payroll processing if attendance records become incomplete
  • May affect reporting and analytics that use from date information

⚠️ Complementary Actions

  • This action removes inconsistent data but doesn't fix underlying issues
  • Consider using EATimeAttendanceSetDefaultFromTime to populate missing times
  • May need additional actions to complete attendance record cleanup

⚠️ Attendance Processing

  • Incomplete attendance records may not be processed correctly
  • Payroll calculations may exclude records with missing from date/time
  • Consider the impact on employee work hour calculations

⚠️ Use Case Scenarios

  • Most useful as a data cleanup step before applying other attendance actions
  • Helpful for preparing data for consistent processing
  • Should be followed by actions that populate missing attendance information

⚠️ Validation Requirements

  • Ensures data meets basic consistency requirements
  • Prevents time calculations with incomplete date/time pairs
  • Maintains database referential integrity for attendance processing

Module: hr

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

Related Actions:

  • EATimeAttendanceSetDefaultFromTime - Sets missing from times based on work schedules
  • EATimeAttendanceSetDefaultToTime - Sets missing to times based on work schedules
Edit On github
Last Updated:: 7/27/25, 9:58 PM
Prev
EAChangeEmployeeStateHandler
Next
EAClearToDateIfToTimeEmpty