Forum Discussion
- QuickBaseCoachDQrew CaptainThis should not be done with Dynamic form rules as they only fire when a record is being editing by a human, and not via the passage of time.
You should use a formula which calculates the vacation time based off the start date of the employee.
Can you state in words what the vacation policy calculation is? - GregSchroederQrew TraineeYear 1-2 10 days (80 hours)
Year 3-5 15 days (120 hours)
Year 6+ 20 days (160 hours) - GregSchroederQrew Traineeup to 3 years from start date = starts with 80 hours
after 3 years from start date = ( add 40 hours )
after 6 years from start date = ( add 40 hours ) - GregSchroederQrew TraineeThe names of the two fields I'm working with are "Start Date" and "Available Vacation Time"
Any help is greatly appreciated! - QuickBaseCoachDQrew CaptainNot tested but try this
IF(
Today() >= AdjustYear([Start Date],6), 160,
Today() >= AdjustYear([Start Date],3), 120, 80) - GregSchroederQrew TraineeHere?
- QuickBaseCoachDQrew CaptainYes, exactly.
- GregSchroederQrew TraineeI think it worked... I can no longer edit the available vacation field and it looks like it has the correct values for my employees... Thanks!
- GregSchroederQrew Traineewait, the employees with between 3-5 years isn't displaying as 120... they are showing as 80 hours like the ones between 1-3 years
- GregSchroederQrew Traineeshoot this won't work anyway... sorry because after they take time off we need to be able to subtract hours from this fiend and it's not editable right now. I'm sorry like I said, learning
- GregSchroederQrew TraineeAnyway just on the 3 and 6 anniversary dates 40 can be added to those fields ( regardless of what's in them at the time ) and keep the field editable so they can subtract time as it's used?