Disclaimer:
Some of this is accounting and state/federal law, neither of which I'm an expert in. I'm simply documenting a piece of code that I wrote for a consultant request.
The request was this:
The Dynamics GP Payroll Deduction setup is in UPR40900. That table holds a max allowable deduction per year (specifically, we're concerned with 401K deductions)
When an employee turns 50, we need to increase that max deduction by $6000 in the UPR00500 Employee Deduction Setup table.
Write a script to do that on their 50th birthday.
So, here it is -->