How nihalswe/attendance_system works
The tree contains a substantial Django attendance and workforce-management application, while the README describes planning material for a separate future project and explicitly says it is not connected to the current project. The graph therefore reflects the runtime modules indicated by the source index, not the README’s proposed design. Core attendance, device ingestion, scheduling, leave, payroll, tenant access, and webhook capabilities are represented; some subsystem links remain unverified because the relevant call sites were not excerpted.
Main entry points: attendance/services.py Attendance calculation · payroll/services.py Payroll calculations · branch_access.py Branch permissions · leaves/services.py Leave workflows
Components 20
Tenant and access
- Company and features
tenants/models.py - Accounts and memberships
accounts/models.py - Branch permissions
access_control/branch_access.py - Audit events
auditlog/services.py - Versioned API domains
api/v1
Workforce and organization
- Employee records
employees/models.py - Organization services
organization/services.py - Branches and departments
organization/models.py
Time and devices
- Device ingestion
devices/services/ingestion.py - Device records
devices/models.py - Attendance calculation
attendance/services.py - Attendance records
attendance/models.py
Leave and scheduling
- Shifts and calendar
scheduling/models.py - Calendar lookup
scheduling/calendar.py - Leave workflows
leaves/services.py
Payroll and integrations
- Payroll calculations
payroll/services.py - Payroll records
payroll/models.py - Attendance webhooks
webhooks/services.py - Reports
reports/builders.py
Other components
- Company user
Connections 20
- Device ingestion → Device records: uses device records
devices/services/ingestion.py - Device ingestion → Attendance calculation: submits attendance
devices/services/ingestion.py - Attendance calculation → Attendance records: writes calculations
attendance/services.py - Attendance calculation → Device records: uses device data
attendance/services.py - Attendance calculation → Shifts and calendar: uses shift rules
attendance/services.py - Attendance calculation → Calendar lookup: uses calendar
attendance/services.py - Attendance calculation → Leave workflows: reads leave data
leaves/services.py - Attendance calculation → Payroll records: references payroll data
attendance/services.py - Attendance calculation → Attendance webhooks: notifies attendance
attendance/services.py - Payroll calculations → Attendance calculation: uses attendance
payroll/services.py - Payroll calculations → Payroll records: uses payroll records
payroll/services.py - Payroll calculations → Shifts and calendar: uses schedule data
payroll/services.py - Organization services → Branches and departments: writes organization
organization/services.py - Organization services → Audit events: records changes
organization/services.py - Leave workflows → Attendance calculation: references attendance
leaves/services.py - Leave workflows → Branch permissions: checks branch access
leaves/services.py - Company user → Versioned API domains: uses API
- Branch permissions → Accounts and memberships: checks membership
access_control/branch_access.py - Branch permissions → Branches and departments: scopes branches
access_control/branch_access.py - Employee records → Branches and departments: references placements
employees/models.py