S
Sheba ISP ERPDOCS
Backend Modules

apps.hr — Human Resources & Payroll

Employee profiles, daily biometric/manual attendance, leave approvals, salary advances, and monthly payroll.

apps.hr — Human Resources & Payroll

IMPLEMENTED

  • Location: backend/apps/hr/
  • Responsibilities: Staff employee directory, daily attendance tracking, leave requests, salary advances, and automated monthly payroll ledger generation.

1. Database Models (5 Models)

Model NamePurposeKey Fields
EmployeeInternal staff HR recordname, email, phone, designation, department, salary, join_date
AttendanceDaily check-in/check-out logsemployee, date, check_in, check_out, status (PRESENT, LATE, ABSENT)
LeaveRequestStaff leave applicationemployee, leave_type, start_date, end_date, status, reason
AdvanceSalaryEmployee salary advance requestsemployee, amount, request_date, deduction_month, status
PayrollRecordMonthly processed salary disbursementemployee, month, basic_salary, bonus, deductions, net_salary, status

2. API Endpoints

  • GET/POST /api/v1/employees/: Employee directory management.
  • GET/POST /api/v1/attendance/: Attendance logging and daily summary reports.
  • GET/POST /api/v1/leaves/: Leave submissions and manager approval workflows.
  • GET/POST /api/v1/advance-salaries/: Advance tracking with automatic deduction mapping.
  • GET/POST /api/v1/payrolls/: Monthly payroll calculation and PDF disbursement slips.

On this page