Skip to content

Timekeeping Module

Mục đích

Quản lý lịch làm việc và chấm công của nhân viên: tạo/cập nhật working schedule, import/export bảng công và xem lịch sử chấm công. Đây là module attendance vận hành hàng ngày.

Quy mô

  • 3 FE pages
  • 8 FE components
  • 1 GraphQL file
  • 2 nhóm nghiệp vụ chính

Actors & Permissions

Nhóm chức năngQuyền
Working scheduleITLeader, ITStaff, BranchPOS và một số role vận hành khác
Clocking historyITLeader, ITStaff

Feature Groups

GroupMô tảPages
Working ScheduleDanh sách lịch làm việc, tạo mới, import/export, update buttonWorkingSchedule.tsx, WorkingScheduleCreate.tsx
Working Time SheetXem bảng công/chấm công tổng hợpWorkingTimeSheet.tsx

Liên kết Modules

  • user — employee, branch, assignee dimensions
  • salary — ngày công và lịch làm việc ảnh hưởng tính lương
  • settings — shift, holiday, approver cấu hình tại settings

Backend Services

ServiceVai trò
controller (Hasura)CRUD working schedule và query timesheet
ecommerce-apiActions/events cho request_working_schedule_*, change status, update data

Databases

DBKey tables
hrmrequest_working_schedule, request_working_schedule_item, holiday/time slot related tables

Đặc điểm kiến trúc

  • FE có ít page nhưng bám mạnh vào import/export và helper compositions (useExportWorkingTimeSheet, useWorkingScheduleImport).
  • Navigation sidebar tách rõ "Lịch làm việc" và "Chấm công".
  • Timekeeping không sống độc lập: shift/holiday/approval ở settings, salary/report dùng lại dữ liệu timesheet.

Deep Dives