Create a complete Attendance Management System and Payroll System in Python Flask with MySQL database. The system should strictly follow these attendance rules, leave policy, and payroll calculations:β
Attendance Rules & Regulations
Working Hours
Monday to Friday: 10:00 AM β 7:00 PM (1-hour break included).
Saturday: 12:00 PM β 6:00 PM (1-hour break included).
Sunday: Weekly Holiday (Off).
Punctuality Policy
Grace Time: 5 minutes allowed (till 10:05 AM weekdays, 12:05 PM Saturday).
Late beyond grace results in salary deduction as per brackets:
10:05β10:30 β 10% of daily salary
10:31β11:00 β 20% of daily salary
11:01β11:30 β 30% of daily salary
11:31β12:00 β 40% of daily salary
12:00β1:00 PM β 50% of daily salary
After 12:00 PM, employee must complete at least 5 hours to count as Half Day.
Check-In/Check-Out Rules
Employees must check in and check out via attendance machine (integrate with ZKTeco API or upload logs).
Missing check-in or check-out = Half-Day deduction (unless reported to lead next working day).
Missing both = Full-Day deduction.
Frequent late arrivals trigger progressive salary deductions.
Leave Policy
Leaves
No casual/annual leave by default.
Emeβ¦