Add source mocked data file, make current_pto tool functional, rename future_pto to future_pto_calc

This commit is contained in:
Laine
2025-03-13 11:33:38 -04:00
parent ea1ad383bb
commit 5c3bfcf957
8 changed files with 66 additions and 24 deletions

17
tools/future_pto_calc.py Normal file
View File

@@ -0,0 +1,17 @@
def future_pto_calc(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,
}