Hello everyone,
I am currently building an AppSheet application to manage compensatory leave (time off in lieu) for employees, and I would appreciate your guidance.
Context:
We have two different work schedules:
1. Standard Schedule:
-
Sunday to Thursday
-
From 08:00 AM to 04:30 PM
2. Shift Schedule:
-
2 days: 07:00 AM to 07:00 PM (day shift)
-
2 days: 07:00 PM to 07:00 AM (night shift)
-
Followed by 4 days off
Compensatory Leave Rules:
For Standard Schedule employees:
They are entitled to compensatory leave if they work on:
-
Friday or Saturday
-
Public holidays (e.g., January 1st, May 1st, July 5th, November 1st)
-
Religious holidays (e.g., first 3 days of Eid al-Fitr)
For Shift Schedule employees:
They are entitled to compensatory leave under the same conditions EXCEPT:
-
Fridays and Saturdays
-
Islamic New Year (1st Muharram)
Approval Workflow:
The compensatory leave request must go through 3 levels of approval:
-
Direct Manager (N+1)
-
Department Manager
-
HR Department (DRH)
Only after all approvals are completed, the leave should be automatically added to the employee’s balance.
My Questions:
-
What is the best way to structure the database (tables/columns) in AppSheet for this scenario?
-
How can I implement these conditional rules for eligibility (based on work schedule and dates)?
-
What is the best approach to create a multi-level approval workflow?
-
How can I automatically update the employee leave balance after final approval?
Any best practices, sample apps, or expression examples would be highly appreciated.
Thank you in advance!