Add in bare bones yet functional HR goal: goal_hr_schedule_pto

This commit is contained in:
Laine
2025-03-12 16:54:13 -04:00
parent 291bace53d
commit ea1ad383bb
9 changed files with 290 additions and 25 deletions

17
tools/future_pto.py Normal file
View File

@@ -0,0 +1,17 @@
def future_pto(args: dict) -> dict:
start_date = args.get("start_date")
end_date = args.get("end_date")
# get rate of accrual - need email?
# get total hrs of PTO available as of start date (accrual * time between today and start date)
# take into account other booked PTO??
# calculate number of business hours of PTO: between start date and end date
# enough_pto = total PTO as of start date - num biz hours of PTO > 0
# pto_hrs_remaining_after = total PTO as of start date - num biz hours of PTO
return {
"enough_pto": True,
"pto_hrs_remaining_after": 410,
}