The Rest Period Compliance Automation Program was developed for a company I work for to streamline the process of ensuring all employees comply with legal requirements regarding rest periods. This program automates the completion of a legal form that every employee is required to sign each pay period, confirming their compliance with rest period regulations. By automating this process, the program saves time and ensures consistency and accuracy across the company.
- Automation of Legal Compliance: The program automatically generates and fills out the necessary forms that employees must sign, confirming whether they have taken their legally required rest periods.
- User-Friendly Interface: A graphical user interface (GUI) makes it easy for employees to interact with the program and complete the form with minimal effort.
- Batch Processing: The program supports batch processing, allowing multiple employees to complete their forms in one session.
- Error Handling: Built-in error handling ensures that any issues during form completion are flagged and addressed promptly.
-
main.py: The central script that drives the program. It handles the overall workflow, including calling other modules, processing data, and interacting with the user through the GUI. -
Application_GUI.py: This module is responsible for creating the user interface, allowing employees to easily navigate and complete their required forms. -
FileHandling.py: Manages file operations, such as reading and writing the form data, saving completed forms, and ensuring data integrity. -
information.txt&information2.txt: These files contain the legal text that informs employees of their rights and responsibilities regarding rest periods. The text is presented to the employee as part of the form completion process.
-
Installation:
- To generate an new exe use this command. pyinstaller --onefile --noconsole --add-data "information1.txt;." --add-data "information2.txt;." --add-data "Notification_Sound.mp3;." --add-data "ssg_logo.jpg;." --add-data "ssg_logo.png;." --add-data "app_logo.png;." --add-data "memes/*;memes" --icon app_logo.ico main.py
- Run
BreakFormApplication v2.1.exeto start the program. If you generated a new exe it will be called main.exe location in /dist
-
Running the Program:
- Once the program is ran, it will open a user-friendly interface where employees can complete and submit their rest period compliance forms.
- Employees will be prompted to review the information contained in
information.txtandinformation2.txtto ensure they understand their obligations and rights regarding rest periods.
-
Form Completion:
- Each employee must initial the form indicating whether they have taken their required rest periods.
- Completed forms are saved automatically, and the data is processed to determine if a Rest Period Premium is required.