HR Module
HR Overview

HR Module — Legacy Business Logic

This section covers the business rules, calculations, and workflows inside the legacy .NET HR system (RealEstateHRBO).

System Overview

Key Business Areas

ModuleSource ClassBusiness Logic
Attendance ProcessingAttendanceProcessingBO.csDual-session AM/PM, merge biometric + mobile, half-day rules
Salary CalculationSalaryCalculationBO.csDay-based, EPF/ESI formulas, loan deductions, two-pass calculation
Credit TrackingCreditTrackingBO.cs1 credit = 10 mins, +/- MF factor, on-time bonus credits
Permission SystemPermissionUtilizedBO.cs2 permissions/month, 10 mins each, covers late/early
Fine & PenaltyPenaltyCalculationBO.csPer-minute fine, salary-per-hour based, waiver workflow
Leave ManagementLeaveFormBO.csApproval-gated, affects session status, credit deductions
Overtime / Comp OffOTCalculationBO.csHoliday/WeekOff OT, comp-off earning, half/full session
Biometric ImportImportAttendanceBO.csManju CSV parser, punch-time extraction, deduplication
Mobile AttendanceMobileAttendanceProcessing.csHaversine distance, reverse geocoding, GPS validation
Background WorkerScheduler.cs / Quartz.NETEvery 30 seconds between 7AM-11PM, auto-processing

Attendance Status Codes

CodeMeaningValue
PPresent — Full Day1.0
AAbsent0.0
MPMorning Present Only0.5
EPEvening Present Only0.5
LCasual Leavevaries
WWeek Off
WPWeek Off Present — worked1.0
WHPWeek Off Half Present0.5
HDHoliday
HDPHoliday Present — worked1.0
HDHPHoliday Half Present0.5
ODOn Duty1.0
WFHWork From Home1.0
COComp Off1.0
COHPComp Off Half Present0.5

Configuration Settings

SettingDefaultUsed By
MinWorkingHourForADay9 hoursSession calculation
OfficeInTime10:00 AMLate-coming threshold
NoOfPermissionsApplicableInAMonth2Permission system
GetMinutesPerPermission10 minsPermission duration
HR_PFLimitAmount21,000EPF cap
HR_EmployeeEPFPercentage12%Employee PF
HR_EmployerEPSPercentage3.67%Employer pension
HR_ESIEligibilityLimit21,000ESI applicability
HR_EmployeeESIPercentage0.75%Employee ESI
HR_EmployerESIPercentage3.25%Employer ESI